ld_course_check_user_access( int $course_id, int|null $user_id = null )
Checks if the user has access to a course.
Description Description
Parameters Parameters
- $course_id
-
(Required) Course ID.
- $user_id
-
(Optional) User ID.
Default value: null
Return Return
(boolean) Returns true if the user has access otherwise false.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |