Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::schema
Get the product schema, resolving the UCP one from the Store API container on first use.
Метод класса: UcpProductMapper{}
Хуков нет.
Возвращает
ProductSchema.
Использование
// private - только в коде основоного (родительского) класса $result = $this->schema(): ProductSchema;
Код UcpProductMapper::schema() UcpProductMapper::schema WC 11.3.0
private function schema(): ProductSchema {
if ( null === $this->schema ) {
$this->schema = StoreApi::container()->get( SchemaController::class )->get( UcpProductSchema::IDENTIFIER );
}
return $this->schema;
}