Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

HandlerRegistry::unregister_collection_handlers()publicWC 1.0

Removes any custom collection handlers for the given collection.

Method of the class: HandlerRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

$HandlerRegistry = new HandlerRegistry();
$HandlerRegistry->unregister_collection_handlers( $collection_name );
$collection_name(string) (required)
The name of the collection to unregister.

HandlerRegistry::unregister_collection_handlers() code WC 9.6.1

public function unregister_collection_handlers( $collection_name ) {
	unset( $this->collection_handler_store[ $collection_name ] );
}