course_progress_data

apply_filters( 'course_progress_data',  array $course_progress_data,  array $users,  int $group_id )

Filters course progress data to be displayed.


Description #


Parameters #

$course_progress_data

(array) An array of course progress data.

$users

(array) An array of user list.

$group_id

(int) Group ID.


Source #

File: includes/class-ld-lms.php


Examples #

 <?php
/**
 * Example usage for course_progress_data filter.
 */
add_filter(
	'course_progress_data',
	function( $course_progress_data, $users, $group_id ) {
		// May add any custom logic using $course_progress_data, $users, $group_id.

		// Always return $course_progress_data.
		return $course_progress_data;
	},
	10,
	3
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.