Zapier_Provider::add_refunded_tc_order_to_queue( TECEvent_AutomatorZapierStatus_Interface $new_status, TECEvent_AutomatorZapierStatus_Interface|null $old_status, WP_Post $order )

Add Refunded Tickets Commerce order to queue.


Parameters

$new_status

(TECEvent_AutomatorZapierStatus_Interface) (Required) New post status.

$old_status

(TECEvent_AutomatorZapierStatus_Interface|null) (Required) Old post status.

$order

(WP_Post) (Required) Order Post object.


Top ↑

Source

File: src/Common/Event_Automator/Zapier/Zapier_Provider.php

	public function add_refunded_tc_order_to_queue( $new_status, $old_status, $order ) {
		$data = [
			'provider'   => tribe_tickets_get_ticket_provider( $order->ID ),
			'order_id'   => $order->ID,
			'order'      => $order,
			'old_status' => $old_status,
			'new_status' => $new_status,
		];

		$this->container->make( Refunded_Orders::class )->add_to_queue( $order->ID, $data );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.