Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

QueryBuilder::set_collection_handler()publicWC 1.0

Set collection handler.

Method of the class: QueryBuilder{}

No Hooks.

Return

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 9.6.1

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