Browse: Home / Functions /


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 #


(int) (Required) Lesson ID.


(int) (Required) User ID.


(int|null) (Optional) Course ID.

Default value: null


(boolean) (Optional) Whether to bypass transient cache.

Default value: false

Return #

(int|void) The timestamp of when the user can access the lesson.

Source #

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

Changelog #

Version Description
2.1.0 Introduced.