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


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