LLMS_Order::unschedule_recurring_payment()

Cancels a scheduled recurring payment action


Description Description

Does nothing if no payments are scheduled


Top ↑

Return Return

(void)


Top ↑

Source Source

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

		$this->unschedule_expiration();

		// Setup expiration.
		if ( in_array( $this->get( 'access_expiration' ), array( 'limited-date', 'limited-period' ), true ) ) {

			$expires_date = $this->get_access_expiration_date( 'Y-m-d H:i:s' );
			$this->set( 'date_access_expires', $expires_date );
			$this->maybe_schedule_expiration();

		}

	}

	/**
	 * Cancels a scheduled expiration action
	 *
	 * Does nothing if no expiration is scheduled
	 *
	 * @since 3.19.0
	 * @since 3.32.0 Update to use latest action-scheduler functions.
	 * @since 4.6.0 Use `$this->get_next_scheduled_action_time()` to determine if the action is currently scheduled.


Top ↑

Changelog Changelog

Changelog
Version Description
4.6.0 Use $this->get_next_scheduled_action_time() to determine if the action is currently scheduled.
3.32.0 Update to use latest action-scheduler functions.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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