WPDev.one
Core Function
View Source on Trac ↗

wp_embed_handler_audio()

wp_embed_handler_audio( mixed $matches, mixed $attr, mixed $url, mixed $rawattr )

Audio embed handler callback.

Parameters 4 required

Name / Type Description
$matches
array

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

Required
$attr
array

Embed attributes.

Required
$url
string

The original URL that was matched by the regex.

Required
$rawattr
array

The original unmodified attributes.

Required

Return Value

(string)
The embed HTML.

Function Information

Since Version
3.6.0
Source File
wp-includes/embed.php
Advertisement