ld_lesson_access_from( int $lesson_id, int $user_id, int|null $course_id = null, boolean $bypass_transient = false )
Gets the timestamp of when a user can access the lesson.
Description Description
Parameters Parameters
- $lesson_id
-
(Required) Lesson ID.
- $user_id
-
(Required) User ID.
- $course_id
-
(Optional) Course ID.
Default value: null
- $bypass_transient
-
(Optional) Whether to bypass transient cache.
Default value: false
Return Return
(int|void) The timestamp of when the user can access the lesson.
Source Source
File: includes/course/ld-course-user-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |