WordPress at Your Fingertips

wp_get_audio_extensions() WP 1.0

Returns a filtered list of WP-supported audio formats.

Hooks from the function

Return

String[]. Supported audio formats.

Usage

wp_get_audio_extensions();

Changelog

Since 3.6.0 Introduced.

Code of wp_get_audio_extensions() WP 5.8.1

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' ) );
}

File extensions

oEmbed (WP response to embed request)

Rarely used

No comments
    Log In