WordPress at a glance
action is not described

media_upload_(tab) action-hook . WP 2.5.0

Fires inside limited and specific upload-tab views in the legacy (pre-3.5.0) media popup.

The dynamic portion of the hook name, $tab, refers to the specific media upload tab. Possible values include 'library' (Media Library), or any custom tab registered via the 'media_upload_tabs' filter.


add_action( 'media_upload_(tab)', 'action_function_name_1063' );
function action_function_name_1063(){
	// action...


Since 2.5.0 Introduced.

Where the hook is called

In file: /wp-admin/media-upload.php
wp-admin/media-upload.php 111
do_action( "media_upload_{$tab}" );

Where in WP core the hook is used WordPress

wp-admin/media-upload.php 20
add_action( 'media_upload_image', 'wp_media_upload_handler' );
wp-admin/media-upload.php 21
add_action( 'media_upload_audio', 'wp_media_upload_handler' );
wp-admin/media-upload.php 22
add_action( 'media_upload_video', 'wp_media_upload_handler' );
wp-admin/media-upload.php 23
add_action( 'media_upload_file', 'wp_media_upload_handler' );
wp-admin/media-upload.php 36
add_filter( 'media_upload_gallery', 'media_upload_gallery' );
wp-admin/media-upload.php 37
add_filter( 'media_upload_library', 'media_upload_library' );
wp-admin/media-upload.php 39
add_filter( 'media_upload_tabs', 'update_gallery_tab' );