wp_audio_shortcode WordPress Filter Hook
The wp_audio_shortcode hook allows you to modify the output of the [audio] shortcode. This can be useful for customizing the player interface or adding additional features to the audio player.
apply_filters( 'wp_audio_shortcode', string $html , array $atts , string $audio , int $post_id , string $library ) #
Filters the audio shortcode output.
Parameters
- $html
(string)Audio shortcode HTML output.
- $atts
(array)Array of audio shortcode attributes.
- $audio
(string)Audio file.
- $post_id
(int)Post ID.
- $library
(string)Media library used for the audio shortcode.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |