Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Media Upload: New custom tab for video WordPress

Hi,

I would like to add a new tab called "Video" next to the "Media Library" Tab. It shall then show the same list as if I would click on the Video filter inside "Media Library" tab.
I have no idea how I can do this.
All I've got is this:

function video_media_menu($tabs) {
$tabs['library']='Video';
// how library plus filter video?
return $tabs;
}
wp_enqueue_script('media-upload');
add_filter('media_upload_tabs', 'video_media_menu');


Please help, thank you!

Answers (2)

2013-11-15

Sébastien | French WordpressDesigner answers:

you would like to add a new tab called "Video" as a submenu in the menu "media" ? that's it ?


add this in functions.php

add_action('admin_menu', 'video_submenu');

function video_submenu() {
add_media_page( "video", "video", "read", "upload.php?post_mime_type=video");
}


rogerrutishauser comments:

yes. see image