media_library_show_audio_playlist

FILTER wp-includes\media.php (ligne 4832) github
Allows showing or hiding the "Create Audio Playlist" button in the media library. By default, the "Create Audio Playlist" button will always be shown in the media library.  If this filter returns `null`, a query will be run to determine whether the media library contains any audio items.  This was the default behavior prior to version 4.8.0, but this query is expensive for large media libraries.

Paramètres

Entrée :
true
Sortie :
@param bool|null $show Whether to show the button, or `null` to decide based

Utilisation

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

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

Actualités

Chargement des actualités...