plugin updates

This commit is contained in:
Tony Volpe
2024-09-17 10:43:54 -04:00
parent 44b413346f
commit b7c8882c8c
1359 changed files with 58219 additions and 11364 deletions

View File

@@ -129,7 +129,18 @@ class WC_Cache_Helper {
$location['state'] = $customer->get_billing_state();
$location['postcode'] = $customer->get_billing_postcode();
$location['city'] = $customer->get_billing_city();
return apply_filters( 'woocommerce_geolocation_ajax_get_location_hash', substr( md5( implode( '', $location ) ), 0, 12 ), $location, $customer );
$location_hash = substr( md5( strtolower( implode( '', $location ) ) ), 0, 12 );
/**
* Controls the location hash used in geolocation-based caching.
*
* @since 3.6.0
*
* @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 );
}
/**