LLMS_Controller_Orders::pending_cancel_order( LLMS_Order $order )

Unschedule recurring payments and schedule access expiration.


Parameters Parameters

$order

(LLMS_Order) (Required) LLMS_Order object.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/controllers/class.llms.controller.orders.php

	public function pending_cancel_order( $order ) {

		$date = $order->get_next_payment_due_date( 'Y-m-d H:i:s' );
		$order->set( 'date_access_expires', $date );

		$order->unschedule_recurring_payment();
		$order->maybe_schedule_expiration();

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.19.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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