(type)_upload_iframe_src
Filters the upload iframe source URL for a specific media type.
The dynamic portion of the hook name, $type, refers to the type of media uploaded.
Possible hook names include:
Usage
add_filter( '(type)_upload_iframe_src', 'wp_kama_type_upload_iframe_src_filter' ); /** * Function for `(type)_upload_iframe_src` filter-hook. * * @param string $upload_iframe_src The upload iframe source URL. * * @return string */ function wp_kama_type_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 );