LLMS_Student_Quizzes::get_all( int[]|Int $quiz = array() )
Retrieve quiz data for a student and optionally filter by quiz_id(s)
Description Description
Parameters Parameters
- $quiz
-
(Optional) Array or single WP_Post ID for quizzes to retrieve attempts for.
Default value: array()
Return Return
(LLMS_Quiz_Attempt[]) Array of quiz attempts for the requested quiz or quizzes.
Source Source
File: includes/models/model.llms.student.quizzes.php
Changelog Changelog
Version | Description |
---|---|
4.21.2 | Retrieve only attempts for the initialized student. |
3.9.0 | |
3.16.11 | Introduced. |