Action: sensei_user_quiz_submitted

do_action( 'sensei_user_quiz_submitted', $user_id, $quiz_id, $grade, $quiz_pass_percentage, $quiz_grade_type )

User quiz has been submitted

Fires the end of the submit_answers_for_grading function. It will fire irrespective of the submission results.

Parameters:
Name Type Description
$user_id int

The user ID.

$quiz_id int

The quiz ID.

$grade int | false

The grade of the quiz.

$quiz_pass_percentage float

The pass percentage of the quiz.

$quiz_grade_type string

The grade type of the quiz.

Source: