Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

HandlerRegistry::get_collection_handlerpublicWC 1.0

Get collection handler by name.

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

Хуков нет.

Возвращает

Массив|null. Collection handler array or null if not found.

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

$HandlerRegistry = new HandlerRegistry();
$HandlerRegistry->get_collection_handler( $name );
$name(строка) (обязательный)
Collection name.

Код HandlerRegistry::get_collection_handler() WC 9.9.4

public function get_collection_handler( $name ) {
	return $this->collection_handler_store[ $name ] ?? null;
}