wp_get_audio_extensions()

Returns a filtered list of WP-supported audio formats.


Return

(array) Supported audio formats.


Source

File: wp-includes/media.php

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


Changelog

Changelog
Version Description
WP-3.6.0 Introduced.