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.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0The $atts parameter was added.
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More