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