ldadvquiz_answered

do_action( 'ldadvquiz_answered',  array $results,  WpProQuiz_Model_Quiz $quiz,  array $question_models )

Fires after a quiz question is answered.


Description #


Parameters #

$results

(array) An array of quiz results data.

$quiz

(WpProQuiz_Model_Quiz) WpProQuiz_Model_Quiz object.

$question_models

(array) An array of question model objects.


Source #

File: includes/quiz/ld-quiz-pro.php


Examples #

 <?php
/**
 * Example usage for ldadvquiz_answered action.
 */
add_action(
	'ldadvquiz_answered',
	function( $results, $quiz, $question_models ) {
		// May add any custom logic using $results, $quiz, $question_models

		echo '<div>Custom content or markup</div>';
	},
	10,
	3
);