WC_AJAX::get_customer_location()
Locate user via AJAX.
Method of the class: WC_AJAX{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_AJAX::get_customer_location();
WC_AJAX::get_customer_location() WC AJAX::get customer location code WC 7.7.0
public static function get_customer_location() { $location_hash = WC_Cache_Helper::geolocation_ajax_get_location_hash(); wp_send_json_success( array( 'hash' => $location_hash ) ); }