apply_filters( "{$type}_upload_iframe_src", string $upload_iframe_src )
- Since
- 3.0.0
Filters the upload iframe source URL for a specific media type.
Description
The dynamic portion of the hook name, $type, refers to the type of media uploaded.
Possible hook names include:
image_upload_iframe_srcmedia_upload_iframe_src
Compatibility
- WordPress
- since 3.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$upload_iframe_srcstring- The upload iframe source URL.
Where this hook fires · 1
wp-admin/includes/media.php:747get_upload_iframe_src()
Source code
* - `media_upload_iframe_src` * * @since 3.0.0 * * @param string $upload_iframe_src The upload iframe source URL. */ $upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src ); return add_query_arg( 'TB_iframe', true, $upload_iframe_src );} /** * Handles form submissions for the legacy media uploader.Changelog
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.