WPDev.one
Core Function
View Source on Trac ↗

wp_audio_shortcode()

wp_audio_shortcode( mixed $attr, mixed $content = '' )

Builds the Audio shortcode output.

Parameters 1 required

Name / Type Description
array

$attr { Attributes of the audio shortcode.

Required
$content
string

Shortcode content.

Return Value

((string)
| void) HTML content to display audio.

Function Information

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