ld_course_access_expires_on

apply_filters( 'ld_course_access_expires_on',  int $course_access_upto,  int $course_id,  int $user_id )

Filters the amount of time until the user’s course access expires.


Description #


Parameters #

$course_access_upto

(int) Course expires on timestamp.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

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


Examples #

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

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

Changelog #

Changelog
Version Description
3.0.7 Introduced.