-
Home
-
HTML5 Video Player – mp4 Video Player Plugin and Block
- Tips
How to Hide Html5 Video Player Admin Menus
function plt_hide_html5_video_player_menus() {
//Hide "Html5 Video Player".
remove_menu_page('edit.php?post_type=videoplayer');
//Hide "Html5 Video Player → Html5 Video Player".
remove_submenu_page('edit.php?post_type=videoplayer', 'edit.php?post_type=videoplayer');
//Hide "Html5 Video Player → Add New Player".
remove_submenu_page('edit.php?post_type=videoplayer', 'post-new.php?post_type=videoplayer');
//Hide "Html5 Video Player → Settings".
remove_submenu_page('edit.php?post_type=videoplayer', 'html5vp_settings');
//Hide "Html5 Video Player → Quick Player".
remove_submenu_page('edit.php?post_type=videoplayer', 'html5vp_quick_player');
//Hide "Html5 Video Player → Affiliation".
remove_submenu_page('edit.php?post_type=videoplayer', 'html5-video-player-affiliation');
//Hide "Html5 Video Player → Contact Us".
remove_submenu_page('edit.php?post_type=videoplayer', 'html5-video-player-contact');
//Hide "Html5 Video Player → Upgrade".
remove_submenu_page('edit.php?post_type=videoplayer', 'html5-video-player-pricing');
}
add_action('admin_menu', 'plt_hide_html5_video_player_menus', 1000000000);
Where do I put this code?
How to Hide the "Configure Your Video Player" Meta Box
function plt_hide_html5_video_player_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Configure Your Video Player" meta box.
remove_meta_box('_h5vp_', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_html5_video_player_metaboxes', 20);