Browse: Home / Functions /


learndash_report_user_courses_progress( int $user_id,  array $course_query_args = array(),  array $activity_query_args = array() )

Gets the users course progress for the report.

Description #

Parameters #


(int) (Optional) User ID to get course list. Default 0.


(array) (Optional) The query arguments to get the list of user enrolled courses.

Default value: array()


(array) (Optional) The query arguments to get the the user activities.

Default value: array()

Return #

(array) If course query and activity query is successfull this should be a multi-dimensional array showing 'results', 'pager', 'query_args', 'query_str'

Source #

File: includes/ld-reports.php

Changelog #

Version Description
2.3.0 Introduced.