wp_video_shortcode_class WordPress Filter Hook

The wp_video_shortcode_class is a filter hook that allows you to modify the class attribute of the video shortcode. This can be useful if you want to customize the output of the video shortcode or if you need to add a specific class for styling purposes.

apply_filters( 'wp_video_shortcode_class', string $class, array $atts ) #

Filters the class attribute for the video shortcode output container.


Parameters

$class

(string)CSS class or list of space-separated classes.

$atts

(array)Array of video shortcode attributes.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0The $atts parameter was added.
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