wp_audio_shortcode_class

wp_audio_shortcode_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_audio_shortcode_class') is found 1 times:

  • /wp-includes/media.php line 3337
    	 *
    	 * @param string $class CSS class or list of space-separated classes.
    	 * @param array  $atts  Array of audio shortcode attributes.
    	 */
    	$atts['class'] = apply_filters( 'wp_audio_shortcode_class', $atts['class'], $atts );
    
    	$html_atts = array(
    		'class'    => $atts['class'],
    		'id'       => sprintf( 'audio-%d-%d', $post_id, $instance ),
    		'loop'     => wp_validate_boolean( $atts['loop'] ),
    		'autoplay' => wp_validate_boolean( $atts['autoplay'] ),