sfwd_lms_has_access( int $post_id, int|null $user_id = null )

Checks whether a user has access to a course.


Description Description


Parameters Parameters

$post_id

(Required) ID of the resource.

$user_id

(Optional) ID of the user.

Default value: null


Top ↑

Return Return

(bool) Returns true if the user has access.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.