woocommerce_geolocate_ip, false, $ip_address, $fallback, $api_fallback
woocommerce_geolocate_ip, false, $ip_address, $fallback, $api_fallback
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_geolocate_ip, false, $ip_address, $fallback, $api_fallback') is found 1 times:
- /includes/class-wc-geolocation.php line 163
* @param bool $fallback If true, fallbacks to alternative IP detection (can be slower). * @param bool $api_fallback If true, uses geolocation APIs if the database file doesn't exist (can be slower). * @return string */ $country_code = apply_filters( 'woocommerce_geolocate_ip', false, $ip_address, $fallback, $api_fallback ); if ( false !== $country_code ) { return array( 'country' => $country_code, 'state' => '', 'city' => '',