wp_video_shortcode WordPress Filter Hook

The wp_video_shortcode hook is used to add extra data to a video shortcode. This hook is used to add information about the video, such as the title and description. This hook is also used to add extra fields to the video shortcode, such as the video ID and video URL.

apply_filters( 'wp_video_shortcode', string $output, array $atts, string $video, int $post_id, string $library ) #

Filters the output of the video shortcode.


Parameters

$output

(string)Video shortcode HTML output.

$atts

(array)Array of video shortcode attributes.

$video

(string)Video file.

$post_id

(int)Post ID.

$library

(string)Media library used for the video shortcode.


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