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


Top ↑

Return Return

(WP_User_Query) The WP_User_Query object.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.