Uma área de pesquisa sobre o WordPress para devs e autores do tema

media_submitbox_misc_sections ›

apply_filters( 'media_submitbox_misc_sections', $fields, $post )
Parâmetros: (2)
  • (array) $fields An array of the attachment metadata keys and labels.
    Required: Yes
  • (WP_Post) $post WP_Post object for the current attachment.
    Required: Yes
Definido em:

Filters the audio and video 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.


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