-
Home
-
VO Store Locator – WP Store Locator Plugin
- Tips
function plt_hide_vo_locator_the_wp_store_locator_menus() {
//Hide "VO Locator".
remove_menu_page('vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php');
//Hide "VO Locator → Locations".
remove_submenu_page('vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php', 'vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php');
//Hide "VO Locator → Settings".
remove_submenu_page('vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php', 'vo-locator-the-wp-store-locator/vosl-admin/pages/settings.php');
//Hide "VO Locator → Tags".
remove_submenu_page('vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php', 'vo-locator-the-wp-store-locator/vosl-admin/pages/manage-tags.php');
//Hide "VO Locator → Contact Us".
remove_submenu_page('vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php', 'vo-locator-the-wp-store-locator/vosl-admin/pages/locations.php-contact');
}
add_action('admin_menu', 'plt_hide_vo_locator_the_wp_store_locator_menus', 1000000000);
Where do I put this code?