diff --git a/lib/model/WpProQuiz_Model_QuizMapper.php b/lib/model/WpProQuiz_Model_QuizMapper.php index e693e77..5002e89 100644 --- a/lib/model/WpProQuiz_Model_QuizMapper.php +++ b/lib/model/WpProQuiz_Model_QuizMapper.php @@ -353,6 +353,15 @@ public function save(WpProQuiz_Model_Quiz $data) return null; } + /** + * Fired when a new WP Pro Quiz is created. + * + * @since 0.38.0 + * + * @param WpProQuiz_Model_Quiz Object $data The newly created WpProQuiz_Model_Quiz object + */ + do_action( 'wp_pro_quiz_save_quiz', $data ); + return $data; }