audio_submitbox_misc_sections filter-hook . WP 3.7.0
Filters the audio attachment metadata fields to be shown in the publish meta box.
The key for each item in the array should correspond to an attachment metadata key, and the value should be the desired label.
Usage
add_filter( 'audio_submitbox_misc_sections', 'filter_function_name_819', 10, 2 ); function filter_function_name_819( $fields, $post ){ // filter... return $fields; }
- $fields(array)
- An array of the attachment metadata keys and labels.
- $post(WP_Post)
- WP_Post object for the current attachment.
Changelog
Since 3.7.0 | Introduced. |
Since 4.9.0 | Added the $post parameter. |
Where the hook is called
wp-admin/includes/media.php 3443
$audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post );