Automattic\WooCommerce\Internal\AddressProvider
AbstractAutomatticAddressProvider::get_address_service_jwt
Get the JWT for the address service, a service should implement an A8C hosted API or some mechanism to get a JWT, this will be passed to frontend code to be used in the address autocomplete and maps.
This method shouldn't implement any caching, it should only fetch the token or throw an exception, if you must handle caching, consider also overriding get_jwt.
Метод класса: AbstractAutomatticAddressProvider{}
Хуков нет.
Возвращает
string. The JWT for the address service.
Использование
$AbstractAutomatticAddressProvider = new AbstractAutomatticAddressProvider(); $AbstractAutomatticAddressProvider->get_address_service_jwt();
Код AbstractAutomatticAddressProvider::get_address_service_jwt() AbstractAutomatticAddressProvider::get address service jwt WC 11.2.2
abstract public function get_address_service_jwt();