LLMS_Student::get_best_quiz_attempt( $quiz = null, $lesson = null )
Get the quiz attempt with the highest grade for a given quiz and lesson combination
Description Description
Parameters Parameters
- $quiz_id
-
(int) (Required) WP Post ID of a Quiz
- $lesson_id
-
(int) (Required) WP Post ID of a lesson
Return Return
(array)
Source Source
File: includes/models/model.llms.student.php
public function get_best_quiz_attempt( $quiz = null, $lesson = null ) { llms_deprecated_function( 'LLMS_Student->get_best_quiz_attempt()', '3.9.0', 'LLMS_Student->quizzes()->get_best_attempt()' ); return $this->quizzes()->get_best_attempt( $quiz, $lesson ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: