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


Top ↑

Return Return

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


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.