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.
Contents
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.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |