learndash_question_statistics_data

apply_filters( 'learndash_question_statistics_data',  array $question_data,  WpProQuiz_Model_Quiz $quiz,  array $http_post_data )

Filters quiz question statistics data.


Description #


Parameters #

$question_data

(array) An array of question statistics data.

$quiz

(WpProQuiz_Model_Quiz) Quiz model object.

$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 #

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

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