media_library_show_video_playlist

media_library_show_video_playlist

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('media_library_show_video_playlist') is found 1 times:

  • /wp-includes/media.php line 4810
    4806
    4807
    4808
    4809
    4810
    4811
    4812
    4813
    4814
    4815
    4816
    *
     * @param bool|null $show Whether to show the button, or `null` to decide based
     *                        on whether any video files exist in the media library.
     */
    $show_video_playlist = apply_filters( 'media_library_show_video_playlist', true );
    if ( null === $show_video_playlist ) {
        $show_video_playlist = $wpdb->get_var(
            "SELECT ID
            FROM $wpdb->posts
            WHERE post_type = 'attachment'
            AND post_mime_type LIKE 'video%'