Zapier_Provider::add_refunded_woo_order_to_queue( int $order_id, string $old_status, string $new_status, WC_Order $order )

Add Refunded Woo order to queue.


Parameters

$order_id

(int) (Required) WooCommerce order ID.

$old_status

(string) (Required) The status of the order prior to this change.

$new_status

(string) (Required) The new order status.

$order

(WC_Order) (Required) The instance of the order object.


Top ↑

Source

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

	public function add_refunded_woo_order_to_queue( $order_id, $old_status, $new_status, $order ) {
		$data = [
			'provider'   => tribe_tickets_get_ticket_provider( $order_id ),
			'order_id'   => $order_id,
			'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.