learndash_set_users_for_course

learndash_set_users_for_course( int $course_id,  array $course_users_new = array() )

Sets new users to the course access list.


Description #


Parameters #

$course_id

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

$course_users_new

(array) (Optional) An array of user IDs to set course access.

Default value: array()


Source #

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