LLMS_Controller_Lesson_Progression::quiz_complete( int $student_id, int $quiz_id, obj $attempt )
Trigger lesson completion when a quiz is completed
Parameters Parameters
- $student_id
-
(int) (Required) WP User ID.
- $quiz_id
-
(int) (Required) WP Post ID of the quiz.
- $attempt
-
(obj) (Required) Instance of the LLMS_Quiz_Attempt.
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.lesson.progression.php
public function quiz_complete( $student_id, $quiz_id, $attempt ) { do_action( 'llms_trigger_lesson_completion', $student_id, $attempt->get( 'lesson_id' ), 'quiz_' . $quiz_id, array( 'attempt' => $attempt, ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.1 | Introduced. |