-
Home
-
Revive Social – Social Media Auto Post and Scheduling Automation Plugin
- Tips
How to Hide Revive Social Admin Menus
function plt_hide_tweet_old_post_menus() {
//Hide "Revive Social".
remove_menu_page('TweetOldPost');
//Hide "Revive Social → Dashboard".
remove_submenu_page('TweetOldPost', 'TweetOldPost');
//Hide "Revive Social → Exclude Posts".
remove_submenu_page('TweetOldPost', 'rop_content_filters');
//Hide "Revive Social → RSS to Social".
remove_submenu_page('TweetOldPost', 'https://revive.social/plugins/revive-network/?utm_source=wpadmin&utm_medium=admin_menu&utm_campaign=admin&utm_content=revivesocialrevive-network');
//Hide "Revive Social → About Us".
remove_submenu_page('TweetOldPost', 'ti-about-tweet_old_post');
//Hide "Revive Social → Upgrade to Pro".
remove_submenu_page('TweetOldPost', 'https://revive.social/plugins/revive-old-post/?utm_source=wpadmin&utm_medium=index&utm_campaign=aboutUsPage&utm_content=revivesocialrevive-old-post');
}
add_action('admin_menu', 'plt_hide_tweet_old_post_menus', 11);
Where do I put this code?
How to Hide the "Revive Social" Meta Box
function plt_hide_tweet_old_post_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Revive Social" meta box.
remove_meta_box('rop_publish_now_metabox', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_tweet_old_post_metaboxes', 20);
How to Hide the "WordPress Guides/Tutorials" Dashboard Widget
function plt_hide_tweet_old_post_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress Guides/Tutorials" widget.
remove_meta_box('themeisle', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_tweet_old_post_dashboard_widgets', 20);