wordpress / latest / functions / wp_get_video_extensions.html

wp_get_video_extensions(): string[]

Returns a filtered list of supported video formats.

Return

string[] List of supported video formats.

Source

File: wp-includes/media.php. View all references

function wp_get_video_extensions() {
	/**
	 * Filters the list of supported video formats.
	 *
	 * @since 3.6.0
	 *
	 * @param string[] $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' ) );
}

Hooks

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
3.6.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_video_extensions