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

			$new_order_status,
			$status
		);

		llms_unenroll_student( $order->get( 'user_id' ), $order->get( 'product_id' ), $status, 'order_' . $order->get( 'id' ) );
		$order->add_note( $note );

		if ( $unschedule_recurring_payment ) {
			$order->unschedule_recurring_payment();

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.