sfwd_lms_access_redirect( int $post_id )
Redirects a user to the course page if it does not have access.
Description Description
Parameters Parameters
- $post_id
-
(Required) The ID of the resource that belongs to a course.
Return Return
(boolean|void) Returns true if the user has access to the course.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |