-
Home
-
PowerPress Podcasting plugin by Blubrry
- Tips
How to Hide Blubrry PowerPress Admin Menus
function plt_hide_powerpress_menus() {
//Hide "Settings → PowerPress".
remove_submenu_page('options-general.php', 'powerpressadmin_basic');
//Hide "PowerPress".
remove_menu_page('powerpressadmin_onboarding.php');
//Hide "PowerPress → Get Started".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpressadmin_onboarding.php');
//Hide "PowerPress → Settings".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpressadmin_basic');
//Hide "PowerPress → Live Item".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_live_item.php');
//Hide "PowerPress → Import Podcast".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_import_feed.php');
//Hide "PowerPress → Migrate Media".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_migrate.php');
//Hide "PowerPress → Audio Player".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_player.php');
//Hide "PowerPress → Video Player".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_videoplayer.php');
//Hide "PowerPress → Tools".
remove_submenu_page('powerpressadmin_onboarding.php', 'powerpress/powerpressadmin_tools.php');
}
add_action('admin_menu', 'plt_hide_powerpress_menus', 11);
Where do I put this code?
How to Hide the "Podcast Episode" Meta Box
function plt_hide_powerpress_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Podcast Episode" meta box.
remove_meta_box('powerpress-podcast', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_powerpress_metaboxes', 20);
How to Hide Blubrry PowerPress Dashboard Widgets
function plt_hide_powerpress_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Podcast Insider by Blubrry" widget.
remove_meta_box('powerpress_dashboard_news', 'dashboard', 'normal');
//Remove the "Blubrry Podcast Statistics" widget.
remove_meta_box('powerpress_dashboard_stats', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_powerpress_dashboard_widgets', 20);