learndash_quiz_statistics_questionCorrectMsg

apply_filters( 'learndash_quiz_statistics_questionCorrectMsg',  string $correct_message,  array $question_data,  array $http_post )

Filters quiz statistics question correct message.


Description #


Parameters #

$correct_message

(string) Question correct message.

$question_data

(array) An array of question statistics data.

$http_post

(array) An array of global http post data.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_quiz_statistics_questionCorrectMsg filter.
 */
add_filter(
	'learndash_quiz_statistics_questionCorrectMsg',
	function( $correct_message, $question_data, $http_post ) {
		// May add any custom logic using $correct_message, $question_data, $http_post.

		// Always return $correct_message.
		return $correct_message;
	},
	10,
	3
);