LLMS_Quiz_Attempt::init( int $quiz_id, int $lesson_id, mixed $student = null )
Initialize a new quiz attempt by quiz and lesson for a user
Description Description
If no user found throws an Exception.
Parameters Parameters
- $quiz_id
-
(Required) WP Post ID of the quiz.
- $lesson_id
-
(Required) WP Post ID of the lesson.
- $student
-
(Optional) Accepts anything that can be passed to llms_get_student. If no user is passed the current user will be used. Default
null
.Default value: null
Return Return
(obj)
Source Source
File: includes/models/model.llms.quiz.attempt.php
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |