-
Home
-
Super Easy Social Share
- Tips
How to Hide the "SE Social Share" Admin Menu
function plt_hide_super_easy_social_share_menus() {
//Hide the "Settings → SE Social Share" menu.
remove_submenu_page('options-general.php', 'social-share');
}
add_action('admin_menu', 'plt_hide_super_easy_social_share_menus', 11);
Where do I put this code?
How to Hide the "SE Social Share" Meta Box
function plt_hide_super_easy_social_share_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "SE Social Share" meta box.
remove_meta_box('se_enable_social_share', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_super_easy_social_share_metaboxes', 20);