sfwd_lms_access_redirect sfwd_lms_access_redirect( int $post_id ) Redirects a user to the course page if it does not have access. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $post_id (int) (Required) The ID of the resource that belongs to a course. Return # (boolean|void) Returns true if the user has access to the course. 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/ld-misc-functions.php: learndash_safe_redirect () Utility function to centralize all LearnDash redirect calls. includes/course/ld-course-user-functions.php: sfwd_lms_has_access () Checks whether a user has access to a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. includes/course/ld-course-user-functions.php: learndash_access_redirect Filters the course redirect URL after checking access. Used By # Used By Used By Description includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_redirect_access () Show course completion/quiz completion Action callback from ‘template_redirect’ (wp core action)
Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_safe_redirect () Utility function to centralize all LearnDash redirect calls. includes/course/ld-course-user-functions.php: sfwd_lms_has_access () Checks whether a user has access to a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. includes/course/ld-course-user-functions.php: learndash_access_redirect Filters the course redirect URL after checking access.
Used By # Used By Used By Description includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_redirect_access () Show course completion/quiz completion Action callback from ‘template_redirect’ (wp core action)