Filter: sensei_grade_question_auto

apply_filters( 'sensei_grade_question_auto', $question_grade, $question_id, $question_type, $answer ) → {int}

Grading questions that are not auto gradable.

This filter is applied the context of ta single question within the sensei_grade_question_auto function. It fires for all other questions types. It does not apply to 'multiple-choice' , 'boolean' and gap-fill.

Parameters:
Name Type Description
$question_grade int

Question grade.

$question_id int

ID of the question being graded.

$question_type string

One of the Sensei question type.

$answer string

User supplied question answer

Source:
Returns:

Filtered question grade.

Type
int