On this page
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
- apply_filters( 'wp_video_extensions',
string[] $extensions ) -
Filters the list of supported video formats.
Related
Uses
| Uses | Description |
|---|---|
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| populate_network_meta() wp-admin/includes/schema.php | Creates WordPress network meta and sets the default values. |
| WP_Widget_Media_Video::__construct() wp-includes/widgets/class-wp-widget-media-video.php | Constructor. |
| WP_Widget_Media_Video::get_instance_schema() wp-includes/widgets/class-wp-widget-media-video.php | Get schema for properties of a widget instance (item). |
| wp_attachment_is() wp-includes/post.php | Verifies an attachment is of a given type. |
| wp_enqueue_media() wp-includes/media.php | Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs. |
| wp_maybe_load_embeds() wp-includes/embed.php | Determines if default embed handlers should be loaded. |
| wp_video_shortcode() wp-includes/media.php | Builds the Video shortcode output. |
| wp_underscore_video_template() wp-includes/media-template.php | Outputs the markup for a video tag to be used in an Underscore template when data.model is passed. |
| wp_print_media_templates() wp-includes/media-template.php | Prints the templates used in the media manager. |
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