WC_AJAX::get_customer_location PHP Méthode

get_customer_location() public static méthode

Locate user via AJAX.
public static get_customer_location ( )
    public static function get_customer_location()
    {
        $location_hash = WC_Cache_Helper::geolocation_ajax_get_location_hash();
        wp_send_json_success(array('hash' => $location_hash));
    }
WC_AJAX