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