-
Home
-
SmartCrawl WordPress SEO checker, SEO analyzer, SEO optimizer
- Tips
How to Hide SmartCrawl Admin Menus
function plt_hide_smartcrawl_seo_menus() {
//Hide "SmartCrawl".
remove_menu_page('wds_wizard');
//Hide "SmartCrawl → Dashboard".
remove_submenu_page('wds_wizard', 'wds_wizard');
//Hide "SmartCrawl → SEO Health".
remove_submenu_page('wds_wizard', 'wds_health');
//Hide "SmartCrawl → Title Meta".
remove_submenu_page('wds_wizard', 'wds_onpage');
//Hide "SmartCrawl → Schema".
remove_submenu_page('wds_wizard', 'wds_schema');
//Hide "SmartCrawl → Social".
remove_submenu_page('wds_wizard', 'wds_social');
//Hide "SmartCrawl → Sitemaps".
remove_submenu_page('wds_wizard', 'wds_sitemap');
//Hide "SmartCrawl → Advanced Tools".
remove_submenu_page('wds_wizard', 'wds-advanced');
//Hide "SmartCrawl → Settings".
remove_submenu_page('wds_wizard', 'wds_settings');
//Hide "SmartCrawl → More free Plugins?".
remove_submenu_page('wds_wizard', 'smartcrawl_cross_sell');
//Hide "SmartCrawl → Upgrade for 80% Off!".
remove_submenu_page('wds_wizard', 'https://wpmudev.com/project/smartcrawl-wordpress-seo/?utm_source=smartcrawl&utm_medium=plugin&utm_campaign=smartcrawl_submenu_upsell');
}
add_action('admin_menu', 'plt_hide_smartcrawl_seo_menus', 101);
Where do I put this code?
How to Hide the "SmartCrawl" Meta Box
function plt_hide_smartcrawl_seo_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "SmartCrawl" meta box.
remove_meta_box('wds-wds-meta-box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_smartcrawl_seo_metaboxes', 20);
How to Hide the "Sitemaps - SmartCrawl" Dashboard Widget
function plt_hide_smartcrawl_seo_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Sitemaps - SmartCrawl" widget.
remove_meta_box('wds_sitemaps_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_smartcrawl_seo_dashboard_widgets', 20);