-
Home
-
WP Maps – Store Locator,Google Maps,OpenStreetMap,Mapbox,Listing,Directory & Filters
- Tips
function plt_hide_wp_google_map_plugin_menus() {
//Hide "WP MAPS".
remove_menu_page('wpgmp_view_overview');
//Hide "WP MAPS → WP MAPS".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_view_overview');
//Hide "WP MAPS → Add Category".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_group_map');
//Hide "WP MAPS → Manage Categories".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_group_map');
//Hide "WP MAPS → Add Location".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_location');
//Hide "WP MAPS → Manage Locations".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_location');
//Hide "WP MAPS → Import Locations".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_import_location');
//Hide "WP MAPS → Add Map".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_map');
//Hide "WP MAPS → Manage Maps".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_map');
//Hide "WP MAPS → Add Route".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_route');
//Hide "WP MAPS → Map Drawing".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_drawing');
//Hide "WP MAPS → Manage Permissions".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_permissions');
//Hide "WP MAPS → Plugin Settings".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_settings');
//Hide "WP MAPS → Plugin Tools".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_tools');
//Hide "WP MAPS → Plugin Add-Ons".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_extentions');
//Hide "WP MAPS → Integrations".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_integration');
//Hide "WP MAPS → Import Maps".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_map_import');
}
add_action('admin_menu', 'plt_hide_wp_google_map_plugin_menus', 101);
Where do I put this code?