media_library_show_video_playlist

FILTER wp-includes\media.php (ligne 4860) github
Allows showing or hiding the "Create Video Playlist" button in the media library. By default, the "Create Video 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 video 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_video_playlist'
add_filter('media_library_show_video_playlist', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...