apply_filters( "llms_{$question_type}_question_pre_grade", null|string $grade , string[] $answer , LLMS_Question $question )
Use this filter to bypass core grading for a given question type.
Description Description
If the filter returns a non-null value core grading is bypassed.
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. |