unregister_block_type() – Unregisters a block type.

You appear to be a bot. Output may be restricted

Description

Unregisters a block type.

Usage

$WP_Block_Type|false = unregister_block_type( $name );

Parameters

$name
( string|WP_Block_Type ) required – Block type name including namespace, or alternatively a complete WP_Block_Type instance.

Returns

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

Source

File name: wordpress/wp-includes/blocks.php
Lines:

1 to 3 of 3
function unregister_block_type( $name ) {
  return WP_Block_Type_Registry::get_instance()->unregister( $name );
}
 

 View on GitHub View on Trac