LLMS_Student::delete_quiz_attempt( int $quiz_id, int $lesson_id, int $attempt = null )
Remove Student Quiz attempts
Parameters Parameters
- $quiz_id
-
(int) (Required) WP Post ID of a Quiz
- $lesson_id
-
(int) (Required) WP Post ID of a lesson
- $attempt
-
(int) (Optional) attempt number, if omitted all attempts for quiz & lesson will be deleted
Default value: null
Return Return
(array) updated array quiz data for the student
Source Source
File: includes/models/model.llms.student.php
} /** * Determine if the student has favorited a lesson.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.4 | Introduced. |