learndash-{$context}-progession-alert-after

do_action( "learndash-{$context}-progession-alert-after",  int|false $post_id,  int $course_id )

Fires after the lesson progression alert.


Description #

The dynamic portion of the hook name, $context, refers to the context for which the hook is fired, such as course, lesson, topic, quiz, etc.


Parameters #

$post_id

(int|false) Post ID.

$course_id

(int) Course ID.


Source #

File: themes/ld30/templates/modules/messages/lesson-progression.php


Examples #

 <?php
/**
 * Example usage for learndash-{$context}-progession-alert-after action.
 */
add_action(
	'learndash-lesson-progession-alert-after',
	function( $post_id, $course_id ) {
		// May add any custom logic using $post_id, $course_id

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.