WordPress at a glance
function is not described

WP_Block_Type_Registry::unregister() public WP 5.0.0

Unregisters a block type.

{} It's a method of the class: WP_Block_Type_Registry{}

No Hooks.

Return

WP_Block_Type/false. The unregistered block type on success, or false on failure.

Usage

$WP_Block_Type_Registry = new WP_Block_Type_Registry();
$WP_Block_Type_Registry->unregister( $name );
$name(string/WP_Block_Type) (required)
Block type name including namespace, or alternatively a complete WP_Block_Type instance.

Changelog

Since 5.0.0 Introduced.

Code of WP_Block_Type_Registry::unregister() WP 5.5.1

<?php
public function unregister( $name ) {
	if ( $name instanceof WP_Block_Type ) {
		$name = $name->name;
	}

	if ( ! $this->is_registered( $name ) ) {
		/* translators: %s: Block name. */
		$message = sprintf( __( 'Block type "%s" is not registered.' ), $name );
		_doing_it_wrong( __METHOD__, $message, '5.0.0' );
		return false;
	}

	$unregistered_block_type = $this->registered_block_types[ $name ];
	unset( $this->registered_block_types[ $name ] );

	return $unregistered_block_type;
}