unregister_block_type( string|WP_Block_Type $name )

Unregisters a block type.


Parameters Parameters

$name

(string|WP_Block_Type) (Required) Block type name including namespace, or alternatively a complete WP_Block_Type instance.


Top ↑

Return Return

(WP_Block_Type|false) The unregistered block type on success, or false on failure.


Top ↑

Source Source

File: wp-includes/blocks.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.