W3cubDocs

/WordPress

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

Filters the default audio shortcode output.

Description

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

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

File: wp-includes/media.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_audio_shortcode_override