W3cubDocs

/WordPress

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.

Parameters

$fieldsarray
An array of the attachment metadata keys and labels.
$postWP_Post
WP_Post object for the current attachment.

Source

$audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post );

Changelog

Version Description
4.9.0 Added the $post parameter.
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/audio_submitbox_misc_sections