wp_video_extensions filter-hookWP 3.6.0

Filters the list of supported video formats.

Usage

add_filter( 'wp_video_extensions', 'wp_kama_video_extensions_filter' );

/**
 * Function for `wp_video_extensions` filter-hook.
 * 
 * @param string[] $extensions An array of supported video formats.
 *
 * @return string[]
 */
function wp_kama_video_extensions_filter( $extensions ){

	// filter...
	return $extensions;
}
$extensions(string[])
An array of supported video formats.
Default: are 'mp4', 'm4v', 'webm', 'ogv', 'flv'

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_get_video_extensions()
wp_video_extensions
wp-includes/media.php 3149
return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'flv' ) );

Where the hook is used in WordPress

Usage not found.