This function has been deprecated. Use Product::user_has_access instead.
ld_course_check_user_access( int $course_id, int|null $user_id = null )
Checks if the user has access to a course.
Description #
Parameters #
- $course_id
-
(int) (Required) Course ID.
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
Return #
(boolean) Returns true if the user has access otherwise false.
Source #
Changelog #
| Version | Description |
|---|---|
| 5.0.0 | Use Product::user_has_access instead. |
| 2.1.0 | Introduced. This function has been deprecated. Use Product::user_has_access instead. |