media_library_show_audio_playlist

media_library_show_audio_playlist

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('media_library_show_audio_playlist') is found 1 times:

  • /wp-includes/media.php line 4734
    	 *
    	 * @param bool|null $show Whether to show the button, or `null` to decide based
    	 *                        on whether any audio files exist in the media library.
    	 */
    	$show_audio_playlist = apply_filters( 'media_library_show_audio_playlist', true );
    	if ( null === $show_audio_playlist ) {
    		$show_audio_playlist = $wpdb->get_var(
    			"SELECT ID
    			FROM $wpdb->posts
    			WHERE post_type = 'attachment'
    			AND post_mime_type LIKE 'audio%'