woocommerce_geolocation_ajax_get_location_hash хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_geolocation_ajax_get_location_hash', 'filter_function_name_8760', 10, 3 ); function filter_function_name_8760( $substr, $location, $customer ){ // filter... return $substr; }
- $substr
- -
- $location
- -
- $customer
- -
Где вызывается хук
woocommerce_geolocation_ajax_get_location_hash
woocommerce/includes/class-wc-cache-helper.php 145
return apply_filters( 'woocommerce_geolocation_ajax_get_location_hash', substr( md5( implode( '', $location ) ), 0, 12 ), $location, $customer );