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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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
},
10,
3
);