-
Home
-
WordPress Plugin for Google Maps – WP MAPS
- 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 → How to Use".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_how_overview');
//Hide "WP MAPS → Add Marker 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 → 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 → Plugin Settings".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_settings');
//Hide "WP MAPS → Add Route".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_form_route');
//Hide "WP MAPS → Manage Routes".
remove_submenu_page('wpgmp_view_overview', 'wpgmp_manage_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 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 → Go Pro".
remove_submenu_page('wpgmp_view_overview', 'https://www.wpmapspro.com/?utm_source=wordpress&utm_medium=liteversion&utm_campaign=freemium&utm_id=freemium');
}
add_action('admin_menu', 'plt_hide_wp_google_map_plugin_menus', 11);
Where do I put this code?