-
Home
-
Whereabouts
- Tips
How to Hide the "Whereabouts" Admin Menu
function plt_hide_whereabouts_menus() {
//Hide the "Settings → Whereabouts" menu.
remove_submenu_page('options-general.php', 'whereabouts');
}
add_action('admin_menu', 'plt_hide_whereabouts_menus', 11);
Where do I put this code?
How to Hide the "Whereabouts (user)" Dashboard Widget
function plt_hide_whereabouts_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Whereabouts (user)" widget.
remove_meta_box('whereabouts-dashboard-widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_whereabouts_dashboard_widgets', 20);