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

foreach ( wp_get_attachment_id3_keys( $attachment ) as $key => $label ) {

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

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