audio_submitbox_misc_sections WordPress Filter Hook

The audio_submitbox_misc_sections hook is used to add content to the Miscellaneous section of the submit audio post page. This hook is typically used to add extra fields or content to the Miscellaneous section.

apply_filters( 'audio_submitbox_misc_sections', array $fields, WP_Post $post ) #

Filters the audio attachment 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