Unregisters a block type.
Parameters
$name
string|WP_Block_Typerequired- Block type name including namespace, or alternatively a complete WP_Block_Type instance.
Source
function unregister_block_type( $name ) {
return WP_Block_Type_Registry::get_instance()->unregister( $name );
}
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes