-
Home
-
Social Share, Social Login and Social Comments Plugin – Super Socializer
- Tips
How to Hide Super Socializer Admin Menus
function plt_hide_super_socializer_menus() {
//Hide "Super Socializer".
remove_menu_page('heateor-ss-general-options');
//Hide "Super Socializer → General Options".
remove_submenu_page('heateor-ss-general-options', 'heateor-ss-general-options');
//Hide "Super Socializer → Social Commenting".
remove_submenu_page('heateor-ss-general-options', 'heateor-social-commenting');
//Hide "Super Socializer → Social Login".
remove_submenu_page('heateor-ss-general-options', 'heateor-social-login');
//Hide "Super Socializer → Social Sharing".
remove_submenu_page('heateor-ss-general-options', 'heateor-social-sharing');
//Hide "Super Socializer → Like Buttons".
remove_submenu_page('heateor-ss-general-options', 'heateor-like-buttons');
}
add_action('admin_menu', 'plt_hide_super_socializer_menus', 11);
Where do I put this code?
How to Hide the "Super Socializer" Meta Box
function plt_hide_super_socializer_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Super Socializer" meta box.
remove_meta_box('the_champ_meta', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_super_socializer_metaboxes', 20);