wp_audio_shortcode_class WordPress Filter Hook
The wp_audio_shortcode_class WordPress hook is used to filter the class attribute for the audio shortcode.
apply_filters( 'wp_audio_shortcode_class', string $class , array $atts ) #
Filters the class attribute for the audio shortcode output container.
Parameters
- $class
(string)CSS class or list of space-separated classes.
- $atts
(array)Array of audio shortcode attributes.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
4.9.0 | The $atts parameter was added. |
3.6.0 | Introduced. |