wp_video_extensions WordPress Filter Hook
The wp_video_extensions Wordpress hook allows you to add new video file extensions to the list of supported file types for the built-in video player. This can be useful if you want to use a file format that is not currently supported, or if you want to use a different file format for a specific purpose.
apply_filters( 'wp_video_extensions', string[] $extensions ) #
Filters the list of supported video formats.
Parameters
- $extensions
(string[])An array of supported video formats. Defaults are 'mp4', 'm4v', 'webm', 'ogv', 'flv'.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |