diff --git a/src/include/class-wc-retailcrm-orders.php b/src/include/class-wc-retailcrm-orders.php index eb6b7d6..4b202b3 100644 --- a/src/include/class-wc-retailcrm-orders.php +++ b/src/include/class-wc-retailcrm-orders.php @@ -91,6 +91,8 @@ if (!class_exists('WC_Retailcrm_Orders')) : $this->processOrder($wcOrder); $response = $this->retailcrm->ordersCreate($this->order); + + // Allows you to verify order creation and perform additional actions $response = apply_filters('retailcrm_order_create_after', $response, $wcOrder); if (!$response instanceof WC_Retailcrm_Response || !$response->isSuccessful()) { @@ -276,6 +278,8 @@ if (!class_exists('WC_Retailcrm_Orders')) : $this->processOrder($wcOrder, true); $response = $this->retailcrm->ordersEdit($this->order); + + // Allows you to verify order changes and perform additional actions $response = apply_filters('retailcrm_order_update_after', $response, $wcOrder); if ($response instanceof WC_Retailcrm_Response && $response->isSuccessful()) {