learndash_quiz_completed_email_admin

apply_filters( 'learndash_quiz_completed_email_admin',  array $email_parameters,  WpProQuiz_Model_Quiz $quiz )

Filters quiz completed email parameters for admin.


Description #


Parameters #

$email_parameters

(array) An array of email parameters.

$quiz

(WpProQuiz_Model_Quiz) Quiz object.


Source #

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


Examples #

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

		// Always return $email_parameters.
		return $email_parameters;
	},
	10,
	2
);