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 #
Parameters #
- $lesson_id
-
(int) (Required) Lesson ID.
- $user_id
-
(int) (Required) User ID.
- $course_id
-
(int|null) (Optional) Course ID.
Default value: null
- $bypass_transient
-
(boolean) (Optional) Whether to bypass transient cache.
Default value: false
Return #
(int|void) The timestamp of when the user can access the lesson.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |