beyondwords_player_script_onload
Filters the onload attribute of the BeyondWords Player script.
Note that the strings should be in double quotes, because the output of this is run through esc_js() before it is output into the DOM.
Parameters
$onload
string
The string value of the onload script.
$params
array
The SDK params for the current post, including projectId
and contentId
.
Example 1
Append a custom command to the default onload script.
Example 2
Log the player params to the browser console before the player initializes.
Changelog
Last updated