wp_audio_shortcode WordPress Filter Hook

The wp_audio_shortcode hook allows you to modify the output of the [audio] shortcode. This can be useful for customizing the player interface or adding additional features to the audio player.

apply_filters( 'wp_audio_shortcode', string $html, array $atts, string $audio, int $post_id, string $library ) #

Filters the audio shortcode output.


Parameters

$html

(string)Audio shortcode HTML output.

$atts

(array)Array of audio shortcode attributes.

$audio

(string)Audio file.

$post_id

(int)Post ID.

$library

(string)Media library used for the audio shortcode.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More