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, $post
Sortie :
@param array $fields An array of the attachment metadata keys and labels. @param WP_Post $post WP_Post object for the current attachment.
// Modifier la valeur avec le filtre 'media_submitbox_misc_sections'
add_filter('media_submitbox_misc_sections', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($fields) {
// Modifier la valeur
return $fields;
}
Chargement des actualités...