{$type}_upload_iframe_src WordPress Filter Hook

The {$type}_upload_iframe_src hook allows you to modify the iframe src for the upload media modal. This can be useful for adding extra security or for changing the iframe src to a custom media uploader.

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

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_src
  • media_upload_iframe_src

Top ↑

Parameters

$upload_iframe_src

(string)The upload iframe source URL.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More