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'.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More