wpc_get_single_course_progress_list( int $course_id, int $user_id)

wpc_get_single_course_progress_list( $course_id, $user_id )

Returns a formatted list of all lessons, quizzes and modules attached to a single course.

Parameters

$course_id (int) the course ID

$user_id (int) user ID

Return

(string) List of all lessons connected to the course you passed

Usage

if(is_user_logged_in()){
	$user_id = get_current_user_id();
	$course_id = 47;

	$lesson_list = wpc_get_single_course_progress_list($course_id, $user_id);

	echo $lesson_list;
}