learndash_quiz_completed

do_action( 'learndash_quiz_completed',  arrat $quizdata,  WP_User $user )

Fires after the quiz is marked as complete.


Description #


Parameters #

$quizdata

(arrat) An array of quiz data.

$user

(WP_User) WP_User object.


Source #

File: includes/ld-users.php


Examples #

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

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