LLMS_Student_Quizzes::get_last_attempt( int $quiz_id )
Retrieve the last recorded attempt for a student for a given quiz/lesson
Description Description
"Last" is defined as the attempt with the highest attempt number
Parameters Parameters
- $quiz_id
-
(Required) WP Post ID of the quiz.
Return Return
(LLMS_Quiz_Attempt|false)
Source Source
File: includes/models/model.llms.student.quizzes.php
Changelog Changelog
Version | Description |
---|---|
3.9.0 | |
3.16.0 | Introduced. |