wp_audio_shortcode_override

Advertisement

Summery Summery

Filters the default audio shortcode output.

Syntax Syntax

apply_filters( 'wp_audio_shortcode_override', string $html, array $attr, string $content, int $instance )

Description Description

If the filtered output isn’t empty, it will be used instead of generating the default audio template.

Parameters Parameters

$html

(string) Empty variable to be replaced with shortcode markup.

$attr

(array) Attributes of the shortcode. @see wp_audio_shortcode()

$content

(string) Shortcode content.

$instance

(int) Unique numeric ID of this audio shortcode instance.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.