apply_filters( "learndash-{$context}-progress-stats", string $progress_markup )
Filters the progress statistics.
Description #
The dynamic portion of the hook name, $context, refers to the context of progress, such as course, lesson, topic, quiz, etc.
Parameters #
- $progress_markup
-
(string) The HTML template of users course/lesson progress
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash-{$context}-progress-stats filter.
*/
add_filter(
'learndash-course-progress-stats',
function( $progress_markup ) {
// May add any custom logic using $progress_markup.
// Always return $progress_markup.
return $progress_markup;
}
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |