Browse: Home / Hooks /

learndash_quiz_question_answer_postprocess

apply_filters( 'learndash_quiz_question_answer_postprocess',  string $answer,  string $context )

Filters the value of quiz question answer after processing.


Description #


Parameters #

$answer

(string) The quiz question anser text.

$context

(string) The context of type of question.


Source #

File: includes/lib/wp-pro-quiz/wp-pro-quiz.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_quiz_question_answer_postprocess filter.
 */
add_filter(
	'learndash_quiz_question_answer_postprocess',
	function( $answer, $context ) {
		// May add any custom logic using $answer, $context.

		// Always return $answer.
		return $answer;
	},
	10,
	2
);