-
Home
-
Slim SEO – Fast & Automated WordPress SEO Plugin
- Tips
How to Hide the "Slim SEO" Admin Menu
function plt_hide_slim_seo_menus() {
//Hide the "Settings → Slim SEO" menu.
remove_submenu_page('options-general.php', 'slim-seo');
}
add_action('admin_menu', 'plt_hide_slim_seo_menus', 11);
Where do I put this code?
How to Hide Slim SEO Meta Boxes
function plt_hide_slim_seo_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Search Engine Optimization" meta box.
remove_meta_box('slim-seo', $screen->id, 'normal');
//Hide the "Excerpt" meta box.
remove_meta_box('postexcerpt', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_slim_seo_metaboxes', 20);