From 2b79832553b1a4c46cca33abaf783fdddf7f961a Mon Sep 17 00:00:00 2001 From: Menaka S Date: Thu, 12 Aug 2021 07:06:27 +0530 Subject: [PATCH] Add base location's state and postcode for tracking --- includes/class-wc-tracker.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-wc-tracker.php b/includes/class-wc-tracker.php index e12803022aa..a7c6cd26b58 100644 --- a/includes/class-wc-tracker.php +++ b/includes/class-wc-tracker.php @@ -619,6 +619,8 @@ class WC_Tracker { 'version' => WC()->version, 'currency' => get_woocommerce_currency(), 'base_location' => WC()->countries->get_base_country(), + 'base_state' => WC()->countries->get_base_state(), + 'base_postcode' => WC()->countries->get_base_postcode(), 'selling_locations' => WC()->countries->get_allowed_countries(), 'api_enabled' => get_option( 'woocommerce_api_enabled' ), 'weight_unit' => get_option( 'woocommerce_weight_unit' ),