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 Description
Parameters Parameters
- $course_id
-
(Optional) The ID of the course. Default 0.
- $query_args
-
(Optional) An array of
WP_User_query
arguments.Default value: array()
- $exclude_admin
-
(Optional) Whether to exclude admins from the user list.
Default value: true
Return Return
(WP_User_Query) The WP_User_Query
object.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |