ld_lesson_access_from

apply_filters( 'ld_lesson_access_from',  int $timestamp,  int $lesson_id,  int $user_id )

Filters the timestamp of when the user will have access to the lesson.


Description #


Parameters #

$timestamp

(int) The timestamp of when the lesson can be accessed.

$lesson_id

(int) Lesson ID.

$user_id

(int) User ID.


Source #

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


Examples #

 <?php
/**
 * Example usage for ld_lesson_access_from filter.
 */
add_filter(
	'ld_lesson_access_from',
	function( $timestamp, $lesson_id, $user_id ) {
		// May add any custom logic using $timestamp, $lesson_id, $user_id.

		// Always return $timestamp.
		return $timestamp;
	},
	10,
	3
);