From 273eb5ef3cbf26241011f523c2715b5f6c423053 Mon Sep 17 00:00:00 2001 From: RamonSVieira Date: Mon, 8 Apr 2024 11:34:58 -0300 Subject: [PATCH] hook after inserting or updating content --- public/class-h5p-wordpress.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/class-h5p-wordpress.php b/public/class-h5p-wordpress.php index 99e01c2..a21197f 100644 --- a/public/class-h5p-wordpress.php +++ b/public/class-h5p-wordpress.php @@ -487,6 +487,8 @@ public function updateContent($content, $contentMainId = NULL) { $content['library']['machineName'], $content['library']['majorVersion'] . '.' . $content['library']['minorVersion']); + do_action('h5p_save_content', $content['id'], $metadata); + return $content['id']; }