-
Home
-
Broadcast Live Video – Live Streaming : WebRTC, HLS, RTSP, RTMP
- Tips
How to Hide Broadcast Live Video - Live Streaming : WebRTC, HLS, RTSP, RTMP Admin Menus
function plt_hide_videowhisper_live_streaming_integration_menus() {
//Hide "Channels".
remove_menu_page('edit.php?post_type=channel');
//Hide "Channels → All Channels".
remove_submenu_page('edit.php?post_type=channel', 'edit.php?post_type=channel');
//Hide "Channels → Categories".
remove_submenu_page('edit.php?post_type=channel', 'edit-tags.php?taxonomy=category&post_type=channel');
//Hide "Channels → Tags".
remove_submenu_page('edit.php?post_type=channel', 'edit-tags.php?taxonomy=post_tag&post_type=channel');
//Hide "Live Streaming".
remove_menu_page('live-streaming');
//Hide "Live Streaming → Settings".
remove_submenu_page('live-streaming', 'live-streaming');
//Hide "Live Streaming → Statistics".
remove_submenu_page('live-streaming', 'live-streaming-stats');
//Hide "Live Streaming → Live & Ban".
remove_submenu_page('live-streaming', 'live-streaming-live');
//Hide "Live Streaming → Documentation".
remove_submenu_page('live-streaming', 'live-streaming-docs');
}
add_action('admin_menu', 'plt_hide_videowhisper_live_streaming_integration_menus', 11);
Where do I put this code?
How to Hide the "Channel Categories" Meta Box
function plt_hide_videowhisper_live_streaming_integration_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Channel Categories" meta box.
remove_meta_box('vwls-nav-menus', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_videowhisper_live_streaming_integration_metaboxes', 20);