wp_embed_handler_audio WordPress Filter Hook
The wp_embed_handler_audio hook allows you to override the default audio embed handler. This can be useful if you want to use a different audio player or if you want to provide a custom audio player.
apply_filters( 'wp_embed_handler_audio', string $audio , array $attr , string $url , array $rawattr ) #
Filters the audio embed output.
Parameters
- $audio
(string)Audio embed output.
- $attr
(array)An array of embed attributes.
- $url
(string)The original URL that was matched by the regex.
- $rawattr
(array)The original unmodified attributes.
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |