audio_submitbox_misc_sections

FILTER wp-admin\includes\media.php (ligne 3483) github
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.

Paramètres

Entrée :
$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.

Utilisation

// Modifier la valeur avec le filtre 'audio_submitbox_misc_sections'
add_filter('audio_submitbox_misc_sections', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($fields) {
    // Modifier la valeur
    return $fields;
}

Actualités

Chargement des actualités...