On this page
apply_filters( 'wp_audio_shortcode', string $html, array $atts, string $audio, int $post_id, string $library )
Filters the audio shortcode output.
Parameters
$htmlstring-
Audio shortcode HTML output.
$attsarray-
Array of audio shortcode attributes.
$audiostring-
Audio file.
$post_idint-
Post ID.
$librarystring-
Media library used for the audio shortcode.
Source
File: wp-includes/media.php. View all references
return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library );
Related
Used By
| Used By | Description |
|---|---|
| wp_audio_shortcode() wp-includes/media.php | Builds the Audio shortcode output. |
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_audio_shortcode