WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp embed handler audio

Description

Audio embed handler callback. (This function creates filter wp_embed_handler_audio.)

Usage

 <?php wp_embed_handler_audio$matches$attr$url$rawattr ?> 

Parameters

$matches
(array) (required) The regex matches from the provided regex when calling wp_embed_register_handler().
Default: None
$attr
(array) (required) Embed attributes.
Default: None
$url
(string) (required) The original URL that was matched by the regex.
Default: None
$rawattr
(array) (required) The original unmodified attributes.
Default: None

Return

(string) 
The embed HTML.

Example

Change Log

Source File

wp_embed_handler_audio() is located in wp-includes/media.php..

Related

Embeds: wp_oembed_add_provider(), wp_oembed_remove_provider(), wp_oembed_get(), wp_embed_defaults(), wp_embed_register_handler(), wp_embed_unregister_handler(), get_embedded_audio(), get_embedded_media(), get_embedded_video(), wp_embed_handler_audio(), wp_embed_handler_video()

Audio: wp_audio_shortcode(), wp_get_audio_extensions(), get_attached_audio(), get_attached_media(), get_embedded_audio(), get_embedded_media(), wp_embed_handler_audio(), wp_mediaelement_fallback(), wp_read_audio_metadata(), wp_add_id3_tag_data(), the_post_format_audio(), get_the_post_format_media(), get_content_audio(), get_content_media()

See also index of Function Reference and index of Template Tags.