Browse: Home / Functions /

sfwd_lms_access_redirect

sfwd_lms_access_redirect( int $post_id )

Redirects a user to the course page if it does not have access.


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.