-
Home
-
Social Sharing Plugin – Sassy Social Share
- Tips
How to Hide Sassy Social Share Admin Menus
function plt_hide_sassy_social_share_menus() {
//Hide "Sassy Social Share".
remove_menu_page('heateor-sss-options');
//Hide "Sassy Social Share → Sassy Social Share".
remove_submenu_page('heateor-sss-options', 'heateor-sss-options');
//Hide "Sassy Social Share → Social Share myCRED Integration".
remove_submenu_page('heateor-sss-options', 'heateor-sss-mycred-options');
//Hide "Sassy Social Share → Recover Social Share Counts".
remove_submenu_page('heateor-sss-options', 'heateor-sss-rssc-options');
//Hide "Sassy Social Share → Social Analytics".
remove_submenu_page('heateor-sss-options', 'heateor-sss-ssga-options');
//Hide "Sassy Social Share → Social Share Buttons".
remove_submenu_page('heateor-sss-options', 'heateor-sss-ssb-options');
}
add_action('admin_menu', 'plt_hide_sassy_social_share_menus', 11);
Where do I put this code?
How to Hide the "Sassy Social Share" Meta Box
function plt_hide_sassy_social_share_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Sassy Social Share" meta box.
remove_meta_box('heateor_sss_meta', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_sassy_social_share_metaboxes', 20);