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

Updates the list of courses a user can access.


Description Description


Parameters Parameters

$user_id

(Required) User ID.

$course_id

(Required) Course ID.

$remove

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

Default value: false


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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