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 all references

$fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post );


Top ↑

Changelog

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

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.