apply_filters( 'wp_video_shortcode_override', string $html , array $attr , string $content , int $instance )
Filters the default video shortcode output.
Description
If the filtered output isn’t empty, it will be used instead of generating the default video template.
See also
Parameters
-
$html
string -
Empty variable to be replaced with shortcode markup.
-
$attr
array -
Attributes of the shortcode. See wp_video_shortcode() .
More Arguments from wp_video_shortcode( ... $attr )
Attributes of the shortcode.
src
stringURL to the source of the video file. Default empty.height
intHeight of the video embed in pixels. Default 360.width
intWidth of the video embed in pixels. Default $content_width or 640.poster
stringThe'poster'
attribute for the<video>
element. Default empty.loop
stringThe'loop'
attribute for the<video>
element. Default empty.autoplay
stringThe'autoplay'
attribute for the<video>
element. Default empty.muted
stringThe'muted'
attribute for the<video>
element. Default false.preload
stringThe'preload'
attribute for the<video>
element.
Default'metadata'
.class
stringThe'class'
attribute for the<video>
element.
Default'wp-video-shortcode'
.
-
$content
string -
Video shortcode content.
-
$instance
int -
Unique numeric ID of this video shortcode instance.
Source
File: wp-includes/media.php
.
View all references
$override = apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instance );
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |