wp_embed_handler_audio WordPress Filter Hook

The wp_embed_handler_audio hook allows you to override the default audio embed handler. This can be useful if you want to use a different audio player or if you want to provide a custom audio player.

apply_filters( 'wp_embed_handler_audio', string $audio, array $attr, string $url, array $rawattr ) #

Filters the audio embed output.


Parameters

$audio

(string)Audio embed output.

$attr

(array)An array of embed attributes.

$url

(string)The original URL that was matched by the regex.

$rawattr

(array)The original unmodified attributes.


Top ↑

Source

File: wp-includes/embed.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.