Filter: sensei_question_answer_message_grade

apply_filters( 'sensei_question_answer_message_grade', $grade, $lesson_id, $question_id, $user_id, $answer_correct ) → {string}

Filter the learner grade displayed.

Parameters:
Name Type Description
$grade string

Formatted grade (eg "0/3 points")

$lesson_id int

Lesson ID.

$question_id int

Question ID.

$user_id int

User ID.

$answer_correct bool

Whether this is the correct answer.

Since:
  • 3.14.0
Source:
Returns:

Answer message.

Type
string