Uma área de pesquisa sobre o WordPress para devs e autores do tema



unregister_block_type ›

Desde5.0.0
Obsoleton/a
unregister_block_type ( $name )
Parâmetros:
  • (string|WP_Block_Type) $name Block type name including namespace, or alternatively a complete WP_Block_Type instance.
    Required: Yes
Retorna:
  • (WP_Block_Type|false) The unregistered block type on success, or false on failure.
Definido em:
Codex:

Unregisters a block type.



Fonte

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