learndash_quiz_email_note_user_message

apply_filters( 'learndash_quiz_email_note_user_message',  string $message,  array $quiz_data,  WpProQuiz_Model_Quiz $quiz,  array $result,  array $categories )

Filters quiz email note user message.


Description #


Parameters #

$message

(string) Quiz email user message.

$quiz_data

(array) An array of quiz data.

$quiz

(WpProQuiz_Model_Quiz) Quiz object.

$result

(array) Quiz result.

$categories

(array) Quiz categories


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_quiz_email_note_user_message filter.
 */
add_filter(
	'learndash_quiz_email_note_user_message',
	function( $message, $quiz_data, $quiz, $result, $categories ) {
		// May add any custom logic using $message, $quiz_data, $quiz, $result, $categories.

		// Always return $message.
		return $message;
	},
	10,
	5
);