learndash_quiz_statistics_questionName

apply_filters( 'learndash_quiz_statistics_questionName',  string $question_name,  array $question_data,  array $http_post_data )

Filters quiz statistics question name.


Description #


Parameters #

$question_name

(string) The question name content.

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

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

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