Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::hydrate_api_request()
Hydrate from the API.
Метод класса: AssetDataRegistry{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$AssetDataRegistry = new AssetDataRegistry(); $AssetDataRegistry->hydrate_api_request( $path );
- $path(строка) (обязательный)
- REST API path to preload.
Код AssetDataRegistry::hydrate_api_request() AssetDataRegistry::hydrate api request WC 9.8.1
public function hydrate_api_request( $path ) { if ( ! isset( $this->preloaded_api_requests[ $path ] ) ) { $this->preloaded_api_requests[ $path ] = Package::container()->get( Hydration::class )->get_rest_api_response_data( $path ); } }