media_upload_{$tab} WordPress Action Hook

The media_upload_{$tab} hook is called when a user clicks on the media tab in the WordPress admin. This hook can be used to add custom fields to the media upload form.

do_action( "media_upload_{$tab}" ) #

Fires inside limited and specific upload-tab views in the legacy (pre-3.5.0) media popup.


Description

The dynamic portion of the hook name, $tab, refers to the specific media upload tab. Possible values include ‘library’ (Media Library), or any custom tab registered via the ‘media_upload_tabs’ filter.


Top ↑

Source

File: wp-admin/media-upload.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.5.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.