Un motore di ricerca WordPress per sviluppatori e autori di temi



unregister_block_type ›

Da5.0.0
Deprecaton/a
unregister_block_type ( $name )
Parametri:
  • (string|WP_Block_Type) $name Block type name including namespace, or alternatively a complete WP_Block_Type instance.
    Richiesto:
Ritorna:
  • (WP_Block_Type|false) The unregistered block type on success, or false on failure.
Definito a:
Codex:

Unregisters a block type.



Sorgenti

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