Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::unregister()publicWC 1.0

Unregister a block.

Method of the class: BlockRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

$BlockRegistry = new BlockRegistry();
$BlockRegistry->unregister( $block_name );
$block_name(string) (required)
Block name.

BlockRegistry::unregister() code WC 9.2.3

public function unregister( $block_name ) {
	$registry = \WP_Block_Type_Registry::get_instance();

	if ( $registry->is_registered( $block_name ) ) {
		$registry->unregister( $block_name );
	}
}