WordPress开发者和主题制作者的搜索引擎



wp_get_video_extensions ›

Since3.6.0
已弃用n/a
wp_get_video_extensions ( 没有参数 )
返回:
  • (array) List of supported video formats.
定义在:
文档:

Returns a filtered list of WP-supported video formats.



源码

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