media_submitbox_misc_sections WordPress Filter Hook
The media_submitbox_misc_sections hook is triggered when the submitbox for a media item is being displayed. It allows for additional sections to be added to the submitbox. This hook is useful for adding extra data fields to a media item, or for displaying extra information about the media item.
apply_filters( 'media_submitbox_misc_sections', array $fields , WP_Post $post ) #
Filters the audio and video metadata fields to be shown in the publish meta box.
Description
The key for each item in the array should correspond to an attachment metadata key, and the value should be the desired label.
Parameters
Source
Changelog
Version | Description |
---|---|
4.9.0 | Added the $post parameter. |
3.7.0 | Introduced. |