Below are the available Hooks within Quizzes. These can be used to customize the functionality for Quizzes.
==========
/**
* Fires after the user passes a quiz
*
* @param integer $quiz_id – Quiz Id
* @param integer current_user->ID – User ID
*/
do_action( ‘wl_quiz_passed', $quiz_id, $current_user->ID );
/**
* Fires after the user fails a quiz
*
* @param integer $quiz_id – Quiz Id
* @param integer current_user->ID – User ID
*/
do_action( ‘wl_quiz_failed', $quiz_id, $current_user->ID );
/**
* Fires after the user completes a quiz
*
* @param integer $quiz_id – Quiz Id
* @param integer current_user->ID – User ID
*/
do_action( ‘wl_quiz_wl_quiz_completed', $quiz_id, $current_user->ID );
/**
* Fires when a quiz added to a lesson is marked completed
* @param integer current_user->ID – User ID
* @param integer $course_id – Parent Course ID of the quiz.
*/
do_action( ‘wlcourses_contents_marked_completed', $current_user->ID, $course_id, ‘wlcourses');
/**
* Fires when a quiz added to a lesson is marked completed
* @param integer current_user->ID – User ID
* @param integer $module_id – Parent Module ID of the quiz.
*/
do_action( ‘wlcourses_contents_marked_completed', $current_user->ID, $module_id, ‘wlmodule');
—
More info on Hooks can be found in the following articles:
Hooks – Badges
Hooks – Points
Hooks – Courses
—