sfwd_lms_has_access_fn sfwd_lms_has_access_fn( int $post_id, int|null $user_id = null ) Checks whether a user has access to a course. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $post_id (int) (Required) ID of the resource. $user_id (int|null) (Optional) ID of the user. Default value: null Return # (bool) Returns true if the user has access. 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-functions.php: learndash_can_user_autoenroll_courses () Check if user can auto-enroll in courses. includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/settings/settings-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-groups.php: learndash_user_group_enrolled_to_course () Checks whether a course can be accessed by the user’s group. includes/course/ld-course-functions.php: learndash_use_legacy_course_access_list () Checks whether to use the legacy course access list. includes/course/ld-course-functions.php: learndash_convert_course_access_list () Converts and gets the course access list. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. includes/course/ld-course-user-functions.php: ld_course_access_expired () Checks whether the user’s access to the course is expired. Used By # Used By Used By 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-functions.php: learndash_can_user_autoenroll_courses () Check if user can auto-enroll in courses. includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/settings/settings-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-groups.php: learndash_user_group_enrolled_to_course () Checks whether a course can be accessed by the user’s group. includes/course/ld-course-functions.php: learndash_use_legacy_course_access_list () Checks whether to use the legacy course access list. includes/course/ld-course-functions.php: learndash_convert_course_access_list () Converts and gets the course access list. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. includes/course/ld-course-user-functions.php: ld_course_access_expired () Checks whether the user’s access to the course is expired.
Used By # Used By Used By Description includes/course/ld-course-user-functions.php: sfwd_lms_has_access () Checks whether a user has access to a course.