- Open up wp-admin/upload.php and find the following line:
$wp_upload_tabs = array_merge($wp_upload_tabs, apply_filters( 'wp_upload_tabs', array() ));
- Right before that line, copy in the following:
$wp_upload_tabs['videos'] = array(__('Videos'), 'upload_files', 'wp_upload_tab_videos', 0);
- Save the file.
- Either as a plugin or add it directly into /wp-admin/upload-functions.php add in the following function:
function wp_upload_tab_videos() {
echo "Test";
}
- Save again.
- Go back to Dashboard -> Write and look at the pretty new tab in your upload iframe.
- Go back to the wp_upload_tab_videos function and add in your demo code for all the videos you support. Use echo commands like I do with the test up above.
Hope this helps,
-drmike
edit: Wasn't someone else going to do this? ;)