wp_video_shortcode_class filter-hook . WP 3.6.0
Filters the class attribute for the video shortcode output container.
Usage
add_filter( 'wp_video_shortcode_class', 'filter_function_name_6770', 10, 2 ); function filter_function_name_6770( $class, $atts ){ // filter... return $class; }
- $class(string)
- CSS class or list of space-separated classes.
- $atts(array)
- Array of video shortcode attributes.
Changelog
Since 3.6.0 | Introduced. |
Since 4.9.0 | The $atts parameter was added. |
Where the hook is called
wp-includes/media.php 3203
$atts['class'] = apply_filters( 'wp_video_shortcode_class', $atts['class'], $atts );