apply_filters( 'learndash_lesson_progress', array $progress, int|object $post )
Filters stats about the user’s current progress within a lesson
Description #
Parameters #
- $progress
-
(array) lesson progress details.
- $post
-
(int|object) Post ID or post object.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_lesson_progress filter. */ add_filter( 'learndash_lesson_progress', function( $progress, $post ) { // May add any custom logic using $progress, $post. // Always return $progress. return $progress; }, 10, 2 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |