Title: Decrease get location speed
Last modified: March 1, 2019

---

# Decrease get location speed

 *  Resolved [nvr21](https://wordpress.org/support/users/nvr21/)
 * (@nvr21)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/)
 * Hello there,
    Any advice to decrease the speed of get location? [https://imgur.com/a/SyUVDxj1](https://imgur.com/a/SyUVDxj1)
   1 sec is really important in my view… Waiting for your answer.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/#post-11272677)
 * Hi,
    Cloudflare could help you to reduce the Geolocation time because when Cloudflare
   is active, the WooCommerce geolocation function does not need to read the MaxMind
   database.
 * I hope this helps you.
 *  Thread Starter [nvr21](https://wordpress.org/support/users/nvr21/)
 * (@nvr21)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/#post-11272839)
 * Hey there.
    First thanks for your suggestion. Second I have sent you an email
   regarding wpml. I would like to know if you can provide me some hooks. I’m trying
   to achieve some auto language switcher with your plugin and wpml.
 * [https://wpml.org/forums/topic/price-based-on-country-switcher-plugin-wpml-2/](https://wpml.org/forums/topic/price-based-on-country-switcher-plugin-wpml-2/)
   
   Can you help me with some hooks to achieve those? Really appreciate thanks.
 *  Thread Starter [nvr21](https://wordpress.org/support/users/nvr21/)
 * (@nvr21)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/#post-11288234)
 * Hey there, please tell me if you can help me with the above concern. Thanks
 *  Plugin Author [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * (@oscargare)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/#post-11289639)
 * Hi,
    you can get the customer country with the function wcpbc_get_woocommerce_country().
   You have to get the customer country after WooCommerce has been initiated, use
   the hook woocommerce_init. I hope this helps you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Decrease get location speed’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Oscar Gare](https://wordpress.org/support/users/oscargare/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/decrease-get-location-speed/#post-11289639)
 * Status: resolved