wp_get_video_extensions()
Returns a filtered list of WP-supported video formats.
Description Description
Return Return
(array) List of supported video formats.
Source Source
File: wp-includes/media.php
function wp_get_video_extensions() { /** * Filters the list of supported video formats. * * @since 3.6.0 * * @param array $extensions An array of supported video formats. Defaults are * 'mp4', 'm4v', 'webm', 'ogv', 'flv'. */ return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'flv' ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Print an array of default WordPress-supported video extensions
Output: