wp_audio_extensions filter-hookWP 3.6.0

Filters the list of supported audio formats.

Usage

add_filter( 'wp_audio_extensions', 'wp_kama_audio_extensions_filter' );

/**
 * Function for `wp_audio_extensions` filter-hook.
 * 
 * @param string[] $extensions An array of supported audio formats.
 *
 * @return string[]
 */
function wp_kama_audio_extensions_filter( $extensions ){

	// filter...
	return $extensions;
}
$extensions(string[])
An array of supported audio formats.
Default: are 'mp3', 'ogg', 'flac', 'm4a', 'wav'

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_get_audio_extensions()
wp_audio_extensions
wp-includes/media.php 2979
return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) );

Where the hook is used in WordPress

Usage not found.