ld_course_check_user_access ld_course_check_user_access( int $course_id, int|null $user_id = null ) Checks if the user has access to a course. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses 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 # File: includes/course/ld-course-user-functions.php Changelog # Changelog Version Description 2.1.0 Introduced. Related # Namespace # global @package # LearnDash / User Uses # Uses Uses Description includes/course/ld-course-user-functions.php: sfwd_lms_has_access () Checks whether a user has access to a course.
Uses # Uses Uses Description includes/course/ld-course-user-functions.php: sfwd_lms_has_access () Checks whether a user has access to a course.