Browse: Home / Functions /


ld_update_course_access( int $user_id,  int $course_id,  boolean $remove = false )

Updates the list of courses a user can access.

Description #

Parameters #


(int) (Required) User ID.


(int) (Required) Course ID.


(boolean) (Optional) Whether to remove course access for the user.

Default value: false

Return #

(boolean|void) Returns true if the user course access updation was successful otherwise false.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.