-
Home
-
Professional Social Sharing Buttons, Icons & Related Posts – Shareaholic
- Tips
How to Hide Shareaholic - Grow and Engage Your Audience Admin Menus
function plt_hide_shareaholic_menus() {
//Hide "Shareaholic".
remove_menu_page('shareaholic-settings');
//Hide "Shareaholic → Cloud Settings".
remove_submenu_page('shareaholic-settings', 'shareaholic-settings');
//Hide "Shareaholic → In-Page Code Blocks".
remove_submenu_page('shareaholic-settings', 'shareaholic-settings-code-blocks');
//Hide "Shareaholic → Plugin Settings".
remove_submenu_page('shareaholic-settings', 'shareaholic-settings-plugin');
}
add_action('admin_menu', 'plt_hide_shareaholic_menus', 11);
Where do I put this code?
How to Hide the "Shareaholic" Meta Box
function plt_hide_shareaholic_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Shareaholic" meta box.
remove_meta_box('shareaholic', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_shareaholic_metaboxes', 20);