learndash_get_users_for_course( int $course_id,  array $query_args = array(),  boolean $exclude_admin = true )

Gets the list of users who has access to the given course.

Description #

Parameters #


(int) (Optional) The ID of the course. Default 0.


(array) (Optional) An array of WP_User_query arguments.

Default value: array()


(boolean) (Optional) Whether to exclude admins from the user list.

Default value: true

Return #

(WP_User_Query) The WP_User_Query object.

Source #

File: includes/course/ld-course-user-functions.php