wp_get_video_extensions()WP 3.6.0

Returns a filtered list of WP-supported video formats.

Hooks from the function

Return

String[]. List of supported video formats.

Usage

wp_get_video_extensions();

Changelog

Since 3.6.0 Introduced.

Code of wp_get_video_extensions() WP 5.9.3

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' ) );
}