WordPress at a glance
filter is not described

wp_audio_shortcode_class filter-hook . WP 3.6.0

Filters the class attribute for the audio shortcode output container.


add_filter( 'wp_audio_shortcode_class', 'filter_function_name_7618', 10, 2 );
function filter_function_name_7618( $class, $atts ){
	// filter...

	return $class;
CSS class or list of space-separated classes.
Array of audio shortcode attributes.


  • Since 4.9.0 The $atts parameter was added.

Where the hook is called

wp-includes/media.php 2319
$atts['class'] = apply_filters( 'wp_audio_shortcode_class', $atts['class'], $atts );

Where the hook is used (in WP core)

Does not used.