apply_filters( "llms_{$question_type}_question_grade", null|string $grade , string[] $answer , LLMS_Question $question )
Filter the grading result of an answer for a given question type.
Description Description
The dynamic portion of this hook, $question_type
, refers to the type of question being graded.
Parameters Parameters
- $grade
-
(null|string) Defaults to
null
which signifies that LifterLMS should attempt to grade the answer. Returnyes
(correct) orno
(incorrect) to bypass core grading methods. - $answer
-
(string[]) User-submitted answers.
- $question
-
(LLMS_Question) Question object.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |