learndash_{$context}_progress_alert

apply_filters( "learndash_{$context}_progress_alert",  array $alert )

Filters the progress alert arguments.


Description #

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


Parameters #

$alert

(array) An array of Progress alert arguments.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_{$context}_progress_alert filter.
 */
add_filter(
	'learndash_course_progress_alert',
	function( $alert ) {
		// May add any custom logic using $alert.

		// Always return $alert.
		return $alert;
	}
);