Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_audio_shortcode()

3 tags 1 category

wp_audio_shortcode() — Builds the Audio shortcode output. This implements the functionality of the Audio Shortcode for displaying WordPress mp3s in a post.

Inputs: $attr (array): Attributes of the audio shortcode. Field $src (string): URL to the source of the audio file. Default empty. Field $loop (string): The ‘loop’ attribute for the <audio> element. Default empty. Field $autoplay (string): The ‘autoplay’ attribute for the <audio> element. Default empty. Field $muted (string): The ‘muted’ attribute for the <audio> element. Default ‘false’. Field $preload (string): The ‘preload’ attribute for the <audio> element. Default ‘none’. Field $class (string): The ‘class’ attribute for the <audio> element. Default ‘wp-audio-shortcode’. Field $style (string): The ‘style’ attribute for the <audio> element. Default ‘width: 100%;’. $content (string): Shortcode content.

Returns string|null: HTML content to display audio.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…