apply_filters( ‘wp_audio_extensions’, string[] $extensions )

In this article

Filters the list of supported audio formats.

Parameters

$extensionsstring[]
An array of supported audio formats. Defaults are 'mp3', 'ogg', 'flac', 'm4a', 'wav'.

Source

return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) );

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.