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.


Top ↑

Parameters

$fields

(array)An array of the attachment metadata keys and labels.

$post

(WP_Post)WP_Post object for the current attachment.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Added the $post parameter.
3.7.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
Show More