wp_video_shortcode_override WordPress Filter Hook

The wp_video_shortcode_override hook allows you to override the default WordPress video shortcode. This can be useful if you want to use a different video player or if you want to change the way the video is displayed on your site.

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()

$content

(string)Video shortcode content.

$instance

(int)Unique numeric ID of this video shortcode instance.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More