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.

Top ↑

See also


Top ↑

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 string
    URL to the source of the video file. Default empty.
  • height int
    Height of the video embed in pixels. Default 360.
  • width int
    Width of the video embed in pixels. Default $content_width or 640.
  • poster string
    The 'poster' attribute for the <video> element. Default empty.
  • loop string
    The 'loop' attribute for the <video> element. Default empty.
  • autoplay string
    The 'autoplay' attribute for the <video> element. Default empty.
  • muted string
    The 'muted' attribute for the <video> element. Default false.
  • preload string
    The 'preload' attribute for the <video> element.
    Default 'metadata'.
  • class string
    The '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.

Top ↑

Source

File: wp-includes/media.php. View all references

$override = apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instance );


Top ↑

Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.