media_upload_form_url filter-hookWP 2.6.0

Filters the media upload form action URL.

Usage

add_filter( 'media_upload_form_url', 'wp_kama_media_upload_form_url_filter', 10, 2 );

/**
 * Function for `media_upload_form_url` filter-hook.
 * 
 * @param string $form_action_url The media upload form action URL.
 * @param string $type            The type of media.
 *
 * @return string
 */
function wp_kama_media_upload_form_url_filter( $form_action_url, $type ){

	// filter...
	return $form_action_url;
}
$form_action_url(string)
The media upload form action URL.
$type(string)
The type of media.
Default: 'file'

Changelog

Since 2.6.0 Introduced.

Where the hook is called

media_upload_type_form()
media_upload_form_url
media_upload_type_url_form()
media_upload_form_url
media_upload_gallery_form()
media_upload_form_url
media_upload_library_form()
media_upload_form_url
wp-admin/includes/media.php 2318
$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
wp-admin/includes/media.php 2387
$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
wp-admin/includes/media.php 2534
$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
wp-admin/includes/media.php 2697
$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );

Where the hook is used in WordPress

Usage not found.