unregister_block_type( string|WP_Block_Type $name ): WP_Block_Type|false
Unregisters a block type.
Parameters
-
$name
string|WP_Block_Type Required -
Block type name including namespace, or alternatively a complete WP_Block_Type instance.
Return
WP_Block_Type|false The unregistered block type on success, or false on failure.
Source
File: wp-includes/blocks.php
.
View all references
function unregister_block_type( $name ) {
return WP_Block_Type_Registry::get_instance()->unregister( $name );
}
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes
-
Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 2You must log in to vote on the helpfulness of this note