Browse: Home / Hooks /

learndash_quiz_statistics_show_feedback_messages

apply_filters( 'learndash_quiz_statistics_show_feedback_messages',  boolean $show_messages,  array $question_data,  array $http_post_data )

Filters whether to show quiz statistics feedback messages.


Description #


Parameters #

$show_messages

(boolean) Whether to show feedback messages.

$question_data

(array) An array of question statistics data.

$http_post_data

(array) An array of global http post data.


Source #

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


Examples #

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

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

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