WordPress at a glance

wp_get_video_extensions() WP 1.0

Returns a filtered list of WP-supported video formats.

Возвращает

String[]. List of supported video formats.

Hooks from the function

Usage

wp_get_video_extensions();

Список изменений

С версии 3.6.0 Введена.

Code of wp_get_video_extensions() WP 5.5.1

wp-includes/media.php
<?php
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' ) );
}

Related Functions

From tag: File extensions

More from tag: WP Embeds (embedding URL in content)

More from category: Rarely used

No comments
    Log In . Register