ld_lesson_access_from__visible_after_specific_date

apply_filters( 'ld_lesson_access_from__visible_after_specific_date',  int $visible_after_specific_date,  int $lesson_id,  int $user_id )

Filters the timestamp of when lesson will be available after a specific date.


Description #


Parameters #

$visible_after_specific_date

(int) The timestamp of when the lesson will be available after a specific date.

$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__visible_after_specific_date filter.
 */
add_filter(
	'ld_lesson_access_from__visible_after_specific_date',
	function( $visible_after_specific_date, $lesson_id, $user_id ) {
		// May add any custom logic using $visible_after_specific_date, $lesson_id, $user_id.

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