Schedule access expiration

Return Return


Top ↑

Source Source

File: includes/models/model.llms.order.php

	public function maybe_schedule_expiration() {

		// Get expiration date based on setting.
		$expires = $this->get_access_expiration_date( 'U' );

		// Will return a timestamp or "Lifetime Access as a string".
		if ( is_numeric( $expires ) ) {
			as_schedule_single_action( $expires, 'llms_access_plan_expiration', $this->get_action_args() );


Top ↑

Changelog Changelog

Version Description
3.32.0 Update to use latest action-scheduler functions.
3.19.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.