-
Home
-
FV Flowplayer Video Player
- Tips
How to Hide FV Player Admin Menus
function plt_hide_fv_wordpress_flowplayer_menus() {
//Hide "Settings → FV Player".
remove_submenu_page('options-general.php', 'fvplayer');
//Hide "FV Player".
remove_menu_page('fv_player');
//Hide "FV Player → Videos/Playlists".
remove_submenu_page('fv_player', 'fv_player');
//Hide "FV Player → Bunny Stream".
remove_submenu_page('fv_player', 'fv_player_bunny_stream');
//Hide "FV Player → Settings".
remove_submenu_page('fv_player', 'fvplayer');
}
add_action('admin_menu', 'plt_hide_fv_wordpress_flowplayer_menus', 14);
Where do I put this code?
How to Hide FV Player Meta Boxes
function plt_hide_fv_wordpress_flowplayer_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Email Popups" meta box.
remove_meta_box('fv_flowplayer_email_lists', $screen->id, 'normal');
//Hide the "Email Integration" meta box.
remove_meta_box('fv_flowplayer_email_integration', $screen->id, 'normal');
//Hide the "Free video intelligence ads" meta box.
remove_meta_box('fv_flowplayer_video_intelligence_revival', $screen->id, 'normal');
//Hide the "video intelligence" meta box.
remove_meta_box('fv_flowplayer_video_intelligence', $screen->id, 'normal');
//Hide the "Account" meta box.
remove_meta_box('fv_flowplayer_video_intelligence_account', $screen->id, 'normal');
//Hide the "Hide vi Ads" meta box.
remove_meta_box('fv_flowplayer_video_intelligence_hide', $screen->id, 'normal');
//Hide the "System Info" meta box.
remove_meta_box('fv_flowplayer_system_information', $screen->id, 'normal');
//Hide the "YouTube" meta box.
remove_meta_box('fv_player_youtube', $screen->id, 'normal');
//Hide the "DigitalOcean Spaces" meta box.
remove_meta_box('fv_player_digitalocean_spaces', $screen->id, 'normal');
//Hide the "Linode Object Storage" meta box.
remove_meta_box('fv_player_linode_object_storage', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_fv_wordpress_flowplayer_metaboxes', 20);