sfwd_lms_has_access_fn( int $post_id, int|null $user_id = null )
Checks whether a user has access to a course.
Description Description
Parameters Parameters
- $post_id
-
(Required) ID of the resource.
- $user_id
-
(Optional) ID of the user.
Default value: null
Return Return
(bool) Returns true if the user has access.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |