Help with Getting the API Score for Drag and Drop
Hi. I am trying to get the score from my Drag and Drop to interact with some javascript function.
I followed one of the previous posts and added the following code to my (wordpress) theme's functions.php file.
function h5pmods_alter_scripts(&$scripts, $libraries, $embed_type) {
if (isset($libraries['H5P.DragQuestion'])) {
$scripts[] = (object) array(
// Path can be relative to wp-content/uploads/h5p or absolute.
'path' => 'score-tracking.js',