WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

Automattic\WooCommerce\Blocks\StoreApi

SchemaController::initialize() protected WC 1.0

Load schema class instances.

{} Это метод класса: SchemaController{}

Хуков нет.

Возвращает

null. Ничего.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->initialize();

Код SchemaController::initialize() WC 5.3.0

<?php
protected function initialize() {
	$this->schemas                                       = [];
	$this->schemas[ ErrorSchema::IDENTIFIER ]            = new ErrorSchema( $this->extend );
	$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]  = new ImageAttachmentSchema( $this->extend );
	$this->schemas[ TermSchema::IDENTIFIER ]             = new TermSchema( $this->extend );
	$this->schemas[ BillingAddressSchema::IDENTIFIER ]   = new BillingAddressSchema( $this->extend );
	$this->schemas[ ShippingAddressSchema::IDENTIFIER ]  = new ShippingAddressSchema( $this->extend );
	$this->schemas[ CartShippingRateSchema::IDENTIFIER ] = new CartShippingRateSchema( $this->extend );
	$this->schemas[ CartCouponSchema::IDENTIFIER ]       = new CartCouponSchema( $this->extend );
	$this->schemas[ CartFeeSchema::IDENTIFIER ]          = new CartFeeSchema( $this->extend );
	$this->schemas[ CartItemSchema::IDENTIFIER ]         = new CartItemSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ CartSchema::IDENTIFIER ]             = new CartSchema(
		$this->extend,
		$this->schemas[ CartItemSchema::IDENTIFIER ],
		$this->schemas[ CartCouponSchema::IDENTIFIER ],
		$this->schemas[ CartFeeSchema::IDENTIFIER ],
		$this->schemas[ CartShippingRateSchema::IDENTIFIER ],
		$this->schemas[ ShippingAddressSchema::IDENTIFIER ],
		$this->schemas[ BillingAddressSchema::IDENTIFIER ],
		$this->schemas[ ErrorSchema::IDENTIFIER ]
	);
	$this->schemas[ CheckoutSchema::IDENTIFIER ]         = new CheckoutSchema(
		$this->extend,
		$this->schemas[ BillingAddressSchema::IDENTIFIER ],
		$this->schemas[ ShippingAddressSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductSchema::IDENTIFIER ]          = new ProductSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductAttributeSchema::IDENTIFIER ] = new ProductAttributeSchema( $this->extend );
	$this->schemas[ ProductCategorySchema::IDENTIFIER ]  = new ProductCategorySchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductCollectionDataSchema::IDENTIFIER ] = new ProductCollectionDataSchema( $this->extend );
	$this->schemas[ ProductReviewSchema::IDENTIFIER ]         = new ProductReviewSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
}