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.
true
Sortie :
@param bool|null $show Whether to show the button, or `null` to decide based
// 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;
}
Chargement des actualités...