Automattic\WooCommerce\Blocks\BlockTypes
Cart::hydrate_from_api()
Hydrate the cart block with data from the API.
Метод класса: Cart{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->hydrate_from_api();
Код Cart::hydrate_from_api() Cart::hydrate from api WC 7.5.1
protected function hydrate_from_api() { $this->asset_data_registry->hydrate_api_request( '/wc/store/v1/cart' ); }