function disable_image_tabs( $tabs ) {
unset(
$tabs['type_url'],
$tabs['gallery']
);
return $tabs;
}
if ( isset( $_REQUEST['context'] ) && 'custom_uploader' == $_REQUEST['context'] ) {
//filters
}