LLMS_Order::maybe_schedule_expiration()
Schedule access expiration
Return Return
(void)
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() );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.32.0 | Update to use latest action-scheduler functions. |
| 3.19.0 | Introduced. |