Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

QueryBuilder::set_collection_handler()publicWC 1.0

Set collection handler.

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

Хуков нет.

Возвращает

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

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

$QueryBuilder = new QueryBuilder();
$QueryBuilder->set_collection_handler( $collection_name, $handlers );
$collection_name(строка) (обязательный)
The name of the custom collection.
$handlers(массив) (обязательный)
Collection handlers.

Код QueryBuilder::set_collection_handler() WC 9.8.5

public function set_collection_handler( $collection_name, $handlers ) {
	$this->collection_handler_store[ $collection_name ] = $handlers;
}