-
Home
-
Blog2Social: Social Media Auto Post & Scheduler
- Tips
How to Hide Blog2Social: Social Media Auto Post & Scheduler Admin Menus
function plt_hide_blog2social_menus() {
//Hide "Blog2Social".
remove_menu_page('blog2social');
//Hide "Blog2Social → Dashboard".
remove_submenu_page('blog2social', 'blog2social');
//Hide "Blog2Social → Networks".
remove_submenu_page('blog2social', 'blog2social-network');
//Hide "Blog2Social → Social Media Posts".
remove_submenu_page('blog2social', 'blog2social-post');
//Hide "Blog2Social → Video Posts".
remove_submenu_page('blog2social', 'blog2social-video');
//Hide "Blog2Social → Calendar".
remove_submenu_page('blog2social', 'blog2social-calendar');
//Hide "Blog2Social → Settings".
remove_submenu_page('blog2social', 'blog2social-settings');
//Hide "Blog2Social → PR-Service".
remove_submenu_page('blog2social', 'prg-post');
//Hide "Blog2Social → Help Support".
remove_submenu_page('blog2social', 'blog2social-support');
//Hide "Blog2Social → PREMIUM".
remove_submenu_page('blog2social', 'blog2social-premium');
}
add_action('admin_menu', 'plt_hide_blog2social_menus', 11);
Where do I put this code?
How to Hide Blog2Social: Social Media Auto Post & Scheduler Meta Boxes
function plt_hide_blog2social_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Blog2Social: Autoposter" meta box.
remove_meta_box('b2s-post-meta-box-auto', $screen->id, 'side');
//Hide the "Blog2Social: Social Media Content Calendar" meta box.
remove_meta_box('b2s-post-box-calendar-header', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_blog2social_metaboxes', 20);