Function: wp_embed_handler_audio

wp_embed_handler_audio( array $matches, array $attr, string $url, array $rawattr )

Audio embed handler callback.


Name Type(s) Default Value Description
$matches array

The RegEx matches from the provided regex when calling wp_embed_register_handler().

$attr array

Embed attributes.

$url string

The original URL that was matched by the regex.

$rawattr array

The original unmodified attributes.



The embed HTML.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.