Uses
Uses | Description |
---|---|
wp-includes/class-wp-block-type-registry.php: WP_Block_Type_Registry::get_instance() | Utility method to retrieve the main instance of the class. |
Unregisters a block type.
(string|WP_Block_Type) (Required) Block type name including namespace, or alternatively a complete WP_Block_Type instance.
(WP_Block_Type|false) The unregistered block type on success, or false on failure.
File: wp-includes/blocks.php
function unregister_block_type( $name ) { return WP_Block_Type_Registry::get_instance()->unregister( $name ); }
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/unregister_block_type