geolocation_ajax_get_location_hash() public static method

Get a hash of the customer location.
public static geolocation_ajax_get_location_hash ( ) : string
return string
Exemplo n.º 1
0
 /**
  * Locate user via AJAX
  */
 public static function get_customer_location()
 {
     $location_hash = WC_Cache_Helper::geolocation_ajax_get_location_hash();
     wp_send_json_success(array('hash' => $location_hash));
 }