From 0785f2b72a09e3d75519fb9f32884a097fd3ab6f Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 25 Apr 2019 11:41:31 -0300 Subject: [PATCH] Bump default WC API version used when creating webhook This commit bumps the default WC API version used when users are creating a new webhook. Before this change the default version would be v2, and after this change it is v3 which is the latest API version. In the future we might want to create a method in WC_API class or somewhere else that returns the latest WC API version and use it in `includes/class-wc-webhook.php` instead of hard-coding the version number. --- 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 12101c50032..eba32270a1a 100644 --- a/includes/class-wc-webhook.php +++ b/includes/class-wc-webhook.php @@ -38,7 +38,7 @@ class WC_Webhook extends WC_Legacy_Webhook { 'event' => '', 'failure_count' => 0, 'user_id' => 0, - 'api_version' => 2, + 'api_version' => 3, 'pending_delivery' => false, );