beyondwords_player_html

Filters the HTML of the BeyondWords Player.

speechkit_js_player_html and beyondwords_js_player_html are deprecated and both redirect to here. Please update to the new filter name; the functionality is exactly the same. The old filters were removed in version 4.0.0.

Parameters

$html string

The HTML for the audio player. The audio player JavaScript may fail to locate the target element if you remove or replace the default contents of this parameter.


$post_id int

WordPress post ID.


$project_id string

BeyondWords project ID.


$content_id string

BeyondWords content ID.


Example

Wrap the player in a container div.


    return '<div class="my-container">' . $html . '</div>'
}
add_filter( 'beyondwords_player_html', 'my_beyondwords_player_html', 10, 4 );

Changelog

VersionDescription

4.3.0

This filter now applies to both AMP and non-AMP content.

4.0.0

Deprecate beyondwords_js_player_html for beyondwords_player_html.

3.7.0

Deprecatespeechkit_js_player_html for beyondwords_js_player_html.

3.1.0

Introduced.

Last updated