woocommerce_geolocation_ajax_get_location_hash хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_geolocation_ajax_get_location_hash', 'wp_kama_woocommerce_geolocation_ajax_get_location_hash_filter', 10, 3 );

/**
 * Function for `woocommerce_geolocation_ajax_get_location_hash` filter-hook.
 * 
 * @param  $substr   
 * @param  $location 
 * @param  $customer 
 *
 * @return 
 */
function wp_kama_woocommerce_geolocation_ajax_get_location_hash_filter( $substr, $location, $customer ){

	// filter...
	return $substr;
}
$substr
-
$location
-
$customer
-

Где вызывается хук

WC_Cache_Helper::geolocation_ajax_get_location_hash()
woocommerce_geolocation_ajax_get_location_hash
woocommerce/includes/class-wc-cache-helper.php 132
return apply_filters( 'woocommerce_geolocation_ajax_get_location_hash', substr( md5( implode( '', $location ) ), 0, 12 ), $location, $customer );

Где используется хук в WooCommerce

Использование не найдено.