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

apply_filters('media_library_show_video_playlist') is found 1 times:

  • /wp-includes/media.php line 4762
    	 *
    	 * @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%'