learndash_update_course_users_groups( int $user_id, int $course_id, array $access_list, boolean $remove )
Updates the users group course access.
Description Description
Fires on learndash_update_course_access
hook.
Parameters Parameters
- $user_id
-
(Required) The ID of the user.
- $course_id
-
(Required) The ID of the course.
- $access_list
-
(Required) An array of course access list.
- $remove
-
(Required) Whether to user group from course access.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |