-
Home
-
RSS Aggregator – RSS Import, News Feeds, Feed to Post, and Autoblogging
- Tips
How to Hide WP RSS Aggregator Admin Menus
function plt_hide_wp_rss_aggregator_menus() {
//Hide "RSS Aggregator".
remove_menu_page('edit.php?post_type=wprss_feed');
//Hide "RSS Aggregator → Feed Sources".
remove_submenu_page('edit.php?post_type=wprss_feed', 'edit.php?post_type=wprss_feed');
//Hide "RSS Aggregator → Feed Items".
remove_submenu_page('edit.php?post_type=wprss_feed', 'edit.php?post_type=wprss_feed_item');
//Hide "RSS Aggregator → Templates".
remove_submenu_page('edit.php?post_type=wprss_feed', 'wpra_feed_templates');
//Hide "RSS Aggregator → Tools".
remove_submenu_page('edit.php?post_type=wprss_feed', 'wpra_tools');
//Hide "RSS Aggregator → Settings".
remove_submenu_page('edit.php?post_type=wprss_feed', 'wprss-aggregator-settings');
//Hide "RSS Aggregator → Upgrade".
remove_submenu_page('edit.php?post_type=wprss_feed', 'wprss_addons');
//Hide "RSS Aggregator → Help & Support".
remove_submenu_page('edit.php?post_type=wprss_feed', 'wprss-help');
}
add_action('admin_menu', 'plt_hide_wp_rss_aggregator_menus', 61);
Where do I put this code?
How to Hide WP RSS Aggregator Meta Boxes
function plt_hide_wp_rss_aggregator_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Feed Source Details" meta box.
remove_meta_box('custom_meta_box', $screen->id, 'normal');
//Hide the "Save Feed Source" meta box.
remove_meta_box('submitdiv', $screen->id, 'side');
//Hide the "Feed Preview" meta box.
remove_meta_box('preview_meta_box', $screen->id, 'side');
//Hide the "Feed Processing" meta box.
remove_meta_box('wprss-feed-processing-meta', $screen->id, 'side');
//Hide the "Share The Love" meta box.
remove_meta_box('wprss-like-meta', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wp_rss_aggregator_metaboxes', 20);