wpseek.com
A WordPress-centric search engine for devs and theme authors



unregister_block_type › WordPress Function

Since5.0.0
Deprecatedn/a
unregister_block_type ( $name )
Parameters:
  • (string|WP_Block_Type) $name Block type name including namespace, or alternatively a complete WP_Block_Type instance.
    Required: Yes
Returns:
  • (WP_Block_Type|false) The unregistered block type on success, or false on failure.
Defined at:
Codex:

Unregisters a block type.



Source

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