media_upload_iframe_src filter-hookWP 3.0.0

Filters the upload iframe source URL for a specific media type.

This is one of the variants of the dynamic hook (type)_upload_iframe_src

Usage

add_filter( 'media_upload_iframe_src', 'wp_kama_media_upload_iframe_src_filter' );

/**
 * Function for `media_upload_iframe_src` filter-hook.
 * 
 * @param string $upload_iframe_src The upload iframe source URL.
 *
 * @return string
 */
function wp_kama_media_upload_iframe_src_filter( $upload_iframe_src ){

	// filter...
	return $upload_iframe_src;
}
$upload_iframe_src(string)
The upload iframe source URL.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

get_upload_iframe_src()
media_upload_iframe_src
wp-admin/includes/media.php 715
$upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src );

Where the hook is used in WordPress

Usage not found.