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.


Top ↑

Parameters Parameters

$grade

(null|string) Defaults to null which signifies that LifterLMS should attempt to grade the answer. Return yes (correct) or no (incorrect) to bypass core grading methods.

$answer

(string[]) User-submitted answers.

$question

(LLMS_Question) Question object.


Top ↑

Source Source

File: includes/models/model.llms.question.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.