learndash_quiz_submitted

do_action( 'learndash_quiz_submitted',  array $quiz_data,  WP_User $current_user )

Fires after the quiz is submitted


Description #


Parameters #

$quiz_data

(array) An array of quiz data.

$current_user

(WP_User) Current user object.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_quiz_submitted action.
 */
add_action(
	'learndash_quiz_submitted',
	function( $quiz_data, $current_user ) {
		// May add any custom logic using $quiz_data, $current_user

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.