From 54d06641eb99ed51bf0d4c83eec3d16c9d82af93 Mon Sep 17 00:00:00 2001 From: Jorge Torres Date: Fri, 11 Aug 2023 14:57:57 -0300 Subject: [PATCH] Add HPOS order trashing/untrashing to webhooks --- plugins/woocommerce/includes/class-wc-webhook.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/woocommerce/includes/class-wc-webhook.php b/plugins/woocommerce/includes/class-wc-webhook.php index 3200b989057..8f9696f8ef1 100644 --- a/plugins/woocommerce/includes/class-wc-webhook.php +++ b/plugins/woocommerce/includes/class-wc-webhook.php @@ -997,9 +997,11 @@ class WC_Webhook extends WC_Legacy_Webhook { ), 'order.deleted' => array( 'wp_trash_post', + 'woocommerce_trash_order', ), 'order.restored' => array( 'untrashed_post', + 'woocommerce_untrash_order', ), 'product.created' => array( 'woocommerce_process_product_meta',