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 #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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; } );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |