-
Home
-
SEO SIMPLE PACK
- Tips
How to Hide SEO SIMPLE PACK Admin Menus
function plt_hide_seo_simple_pack_menus() {
//Hide "SEO PACK".
remove_menu_page('ssp_main_setting');
//Hide "SEO PACK → General settings".
remove_submenu_page('ssp_main_setting', 'ssp_main_setting');
//Hide "SEO PACK → OGP settings".
remove_submenu_page('ssp_main_setting', 'ssp_ogp_setting');
//Hide "SEO PACK → HELP".
remove_submenu_page('ssp_main_setting', 'ssp_help');
}
add_action('admin_menu', 'plt_hide_seo_simple_pack_menus', 11);
Where do I put this code?
How to Hide the "SEO SIMPLE PACK Settings" Meta Box
function plt_hide_seo_simple_pack_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "SEO SIMPLE PACK Settings" meta box.
remove_meta_box('ssp_metabox', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_seo_simple_pack_metaboxes', 20);