wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_audio_extensions › WordPress Function

Since3.6.0
Deprecatedn/a
wp_get_audio_extensions ( No parameters )
Returns:
  • (string[]) Supported audio formats.
Defined at:
Codex:

Returns a filtered list of supported audio formats.



Source

function wp_get_audio_extensions() {
	/**
	 * Filters the list of supported audio formats.
	 *
	 * @since 3.6.0
	 *
	 * @param string[] $extensions An array of supported audio formats. Defaults are
	 *                            'mp3', 'ogg', 'flac', 'm4a', 'wav'.
	 */
	return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) );
}