ld_update_course_access( int $user_id, int $course_id, boolean $remove = false )
Updates the list of courses a user can access.
Description #
Parameters #
- $user_id
-
(int) (Required) User ID.
- $course_id
-
(int) (Required) Course ID.
- $remove
-
(boolean) (Optional) Whether to remove course access for the user.
Default value: false
Return #
(bool) Returns true if the user course access update was successful otherwise false.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |