apply_filters( 'learndash_progress_args', array $progress_args, int $course_id, int $user_id )
Filters LearnDash progress arguments.
Description #
This filter will not be called if the context is topic
.
Parameters #
- $progress_args
-
(array) An array of progress arguments.
- $course_id
-
(int) Course ID.
- $user_id
-
(int) User ID.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_progress_args filter. */ add_filter( 'learndash_progress_args', function( $progress_args, $course_id, $user_id ) { // May add any custom logic using $progress_args, $course_id, $user_id. // Always return $progress_args. return $progress_args; }, 10, 3 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |