apply_filters( "learndash-{$context}-progress-stats" )
In the topic context we’re measuring progress through a lesson, not the course itself
Contents
Description #
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;
}
);