Browse: Home / Functions /

ld_course_check_user_access

ld_course_check_user_access( int $course_id,  int|null $user_id = null )

Checks if the user has access to a course.


Description #


Parameters #

$course_id

(int) (Required) Course ID.

$user_id

(int|null) (Optional) User ID.

Default value: null


Return #

(boolean) Returns true if the user has access otherwise false.


Source #

File: includes/course/ld-course-user-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.