image_upload_iframe_src
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( 'image_upload_iframe_src', 'wp_kama_image_upload_iframe_src_filter' ); /** * Function for `image_upload_iframe_src` filter-hook. * * @param string $upload_iframe_src The upload iframe source URL. * * @return string */ function wp_kama_image_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
wp-admin/includes/media.php 729
$upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src );