Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

Controller::register_core_collections_and_set_handler_store()protectedWC 1.0

Registers core collections and sets the handler store.

Метод класса: Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код Controller::register_core_collections_and_set_handler_store() WC 9.8.4

protected function register_core_collections_and_set_handler_store() {
	// Use HandlerRegistry to register collections.
	$collection_handler_store = $this->collection_handler_registry->register_core_collections();
	$this->query_builder->set_collection_handler_store( $collection_handler_store );
}