From 9da3f79f41148f5e97e2b4e58beb7ee6ab097b90 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Thu, 18 Aug 2016 13:22:13 -0300 Subject: [PATCH] Introduces the woocommerce_webhook_order_payload_filters filter --- includes/class-wc-webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-webhook.php b/includes/class-wc-webhook.php index 2efd9e32a9d..39ce0b745da 100644 --- a/includes/class-wc-webhook.php +++ b/includes/class-wc-webhook.php @@ -269,7 +269,7 @@ class WC_Webhook { break; case 'order': - $payload = WC()->api->WC_API_Orders->get_order( $resource_id ); + $payload = WC()->api->WC_API_Orders->get_order( $resource_id, null, apply_filters( 'woocommerce_webhook_order_payload_filters', array() ) ); break; case 'product':