Title: {$type}_upload_iframe_src
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( “{$type}_upload_iframe_src”, string $upload_iframe_src )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#wp--skip-link--target)

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

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$type`, refers to the type of media uploaded.

Possible hook names include:

 * `image_upload_iframe_src`
 * `media_upload_iframe_src`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#parameters)󠁿

 `$upload_iframe_src`string

The upload iframe source URL.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#source)󠁿

    ```php
    $upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/media.php#L747)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/media.php#L747-L747)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#related)󠁿

| Used by | Description | 
| [get_upload_iframe_src()](https://developer.wordpress.org/reference/functions/get_upload_iframe_src/)`wp-admin/includes/media.php` |

Retrieves the upload iframe source URL.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/type_upload_iframe_src/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ftype_upload_iframe_src%2F)
before being able to contribute a note or feedback.