apply_filters( 'learndash_ques_multiple_answer_pts_whole', int $points, array $question_data, int|string $answer_index, mixed $correct_answer, array $user_response )

Filters points awarded for a multiple answer type question.


Description Description

LearnDash multiple answer question, allow points to be allocated for not marking an incorrect answer. LearnDash Core loops over all the answers in a multiple answer question. If the user does not mark an incorrect answer, allow the possibility of giving them points.


Parameters Parameters

$points

Points awarded to quiz

$question_data

An array of question data.

$answer_index

Index of the answer.

$correct_answer

Correct answer for the question.

$user_response

An array of user response data.


Top ↑

Source Source

File: includes/quiz/ld-quiz-pro.php


Top ↑

User Contributed Notes User Contributed Notes

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