Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

HandlerRegistry::unregister_collection_handlerspublicWC 1.0

Removes any custom collection handlers for the given collection.

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

Хуков нет.

Возвращает

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

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

$HandlerRegistry = new HandlerRegistry();
$HandlerRegistry->unregister_collection_handlers( $collection_name );
$collection_name(строка) (обязательный)
The name of the collection to unregister.

Код HandlerRegistry::unregister_collection_handlers() WC 9.9.4

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