WC_Cache_Helper::get_cache_prefix()publicWC 1.0

Метод класса: WC_Cache_Helper{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Cache_Helper = new WC_Cache_Helper();
$WC_Cache_Helper->* @return string;

Код WC_Cache_Helper::get_cache_prefix() WC 8.7.0

* @return string
*/
	public static function geolocation_ajax_get_location_hash() {
		$customer             = new WC_Customer( 0, true );
		$location             = array();
		$location['country']  = $customer->get_billing_country();
		$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 );
	}