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.
Contents
Description #
Parameters #
- $timestamp
-
(int) The timestamp of when the lesson can be accessed.
- $lesson_id
-
(int) Lesson ID.
- $user_id
-
(int) User ID.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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
);