woocommerce_geolocation_ajax_get_location_hash, $location_hash, $location, $customer

woocommerce_geolocation_ajax_get_location_hash, $location_hash, $location, $customer

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_geolocation_ajax_get_location_hash, $location_hash, $location, $customer') is found 1 times:

  • /includes/class-wc-cache-helper.php line 186
    		 * @param string      $location_hash The hash used for geolocation.
    		 * @param array       $location      The location/address data.
    		 * @param WC_Customer $customer      The current customer object.
    		 */
    		return apply_filters( 'woocommerce_geolocation_ajax_get_location_hash', $location_hash, $location, $customer );
    	}
    
    	/**
    	 * When using geolocation via ajax, to bust cache, redirect if the location hash does not equal the querystring.
    	 *
    	 * This prevents caching of the wrong data for this request.