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.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
4.9.0 | The $atts parameter was added. |
3.6.0 | Introduced. |