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.


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-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.