woocommerce_geolocate_ip

woocommerce_geolocate_ip

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_geolocate_ip') is found 1 times:

  • /includes/class-wc-geolocation.php line 146
    	 * @return array
    	 */
    	public static function geolocate_ip( $ip_address = '', $fallback = false, $api_fallback = true ) {
    		// Filter to allow custom geolocation of the IP address.
    		$country_code = apply_filters( 'woocommerce_geolocate_ip', false, $ip_address, $fallback, $api_fallback );
    
    		if ( false !== $country_code ) {
    			return array(
    				'country'  => $country_code,
    				'state'    => '',
    				'city'     => '',