wp_audio_extensions WordPress Filter Hook
The wp_audio_extensions Wordpress hook allows for the addition of new audio file formats to the WordPress media library. This hook is useful for adding support for new audio formats, or for removing support for existing audio formats.
apply_filters( 'wp_audio_extensions', string[] $extensions ) #
Filters the list of supported audio formats.
Parameters
- $extensions
(string[])An array of supported audio formats. Defaults are 'mp3', 'ogg', 'flac', 'm4a', 'wav'.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |