learndash_progress_args

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 #

File: themes/ld30/templates/modules/progress.php


Examples #

 <?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
);