I'm trying to have my plugin create a new custom Media Upload form. I've managed to create the new tab with the code below, but I can't get the form to appear (I just get a blank page when clicking my new tab). Can anyone tell me where I'm going wrong?
Any tips very much appreciated!
a|x
add_filter( 'media_upload_tabs', 'ell_gmap_upload_tab' );
function ell_gmap_upload_tab( $tabs ) {
$newtab = array('ell_insert_gmap' => __('Google Map','insertgmap'));
return array_merge($tabs,$newtab);
}
/////////////////////////
add_action('media_upload_ell_gmap', 'media_upload_ell_gmap');
function media_upload_ell_gmap() {
return wp_iframe('media_upload_ell_gmap_form', $errors );
}
function media_upload_ell_gmap_form() { ?>
HTML Form
<?php
}