learndash-quiz-attempts-alert-after

do_action( 'learndash-quiz-attempts-alert-after',  int $quiz_id,  int $course_id,  int $user_id )

Fires after the quiz attempts alert.


Description #


Parameters #

$quiz_id

(int) Quiz ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/quiz.php


Examples #

 <?php
/**
 * Example usage for learndash-quiz-attempts-alert-after action.
 */
add_action(
	'learndash-quiz-attempts-alert-after',
	function( $quiz_id, $course_id, $user_id ) {
		// May add any custom logic using $quiz_id, $course_id, $user_id

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.