LLMS_Order::maybe_schedule_expiration()

Schedule access expiration


Return Return

(void)


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 ) ) {
			$this->unschedule_expiration();
			as_schedule_single_action( $expires, 'llms_access_plan_expiration', $this->get_action_args() );
		}

	}


Top ↑

Changelog 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.