-
Home
-
WordPress Domain Search
- Tips
How to Hide the "WP Domain Search" Admin Menu
function plt_hide_wordpress_domain_search_menus() {
//Hide the "Settings → WP Domain Search" menu.
remove_submenu_page('options-general.php', 'wordpress-domain-search-settings');
}
add_action('admin_menu', 'plt_hide_wordpress_domain_search_menus', 11);
Where do I put this code?
How to Hide the "Wordpress Domain Search" Dashboard Widget
function plt_hide_wordpress_domain_search_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Wordpress Domain Search" widget.
remove_meta_box('wp_doimain_search_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wordpress_domain_search_dashboard_widgets', 20);