WordPress at a glance

wp_get_audio_extensions() WP 1.0

Returns a filtered list of WP-supported audio formats.

Hooks from function:
Return

Array. Supported audio formats.

Usage

wp_get_audio_extensions();

Code of wp_get_audio_extensions: wp-includes/media.php VER 4.9.8

<?php
function wp_get_audio_extensions() {
	/**
	 * Filters the list of supported audio formats.
	 *
	 * @since 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' ) );
}

Related Functions

From tag: File extensions

More from tag: WP Embeds (embedding URL in content)

More from category: Rarely used

No comments
    Hello, !     Log In . Register