Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

QueryBuilder::set_collection_handlerpublicWC 1.0

Set collection handler.

Method of the class: QueryBuilder{}

No Hooks.

Returns

null. Nothing (null).

Usage

$QueryBuilder = new QueryBuilder();
$QueryBuilder->set_collection_handler( $collection_name, $handlers );
$collection_name(string) (required)
The name of the custom collection.
$handlers(array) (required)
Collection handlers.

QueryBuilder::set_collection_handler() code WC 10.5.0

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