WPDev.one
Core Function
View Source on Trac ↗

unregister_block_type()

unregister_block_type( mixed $name )

Unregisters a block type.

Parameters 1 required

Name / Type Description
mixed

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

Required

Return Value

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

Function Information

Since Version
5.0.0
Source File
wp-includes/blocks.php
Advertisement