Title: Get the current Zone
Last modified: April 20, 2019

---

# Get the current Zone

 *  Resolved [brodde](https://wordpress.org/support/users/brodde/)
 * (@brodde)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/get-the-current-zone/)
 * Hi i used this function before to retrive the current zone
 * WCPBC()->customer->zone_id
 * Is this changed, after the last update this no longer works?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [7 years ago](https://wordpress.org/support/topic/get-the-current-zone/#post-11451032)
 * Hi,
    the customer object is deprecated.
 * Since version 1.8 you can get the current zone by the function wcpbc_the_zone()
 * `wcpbc_the_zone` returns the current `WCPBC_Pricing_Zone` object or false if 
   there is no pricing zone that matches with the customer country.
 * `wcpbc_the_zone()->get_zone_id();`

Viewing 1 replies (of 1 total)

The topic ‘Get the current Zone’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-price-based-on-countries/assets/icon-
   256x256.png?rev=1976858)
 * [Price Based on Country for WooCommerce](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-price-based-on-countries/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/get-the-current-zone/#post-11451032)
 * Status: resolved