unregister_block_type

函数


unregister_block_type ( $name )
参数
  • (string|WP_Block_Type)
    $name
    Block type name including namespace, or alternatively a complete WP_Block_Type instance.
    Required:
返回值
  • (WP_Block_Type|false) The unregistered block type on success, or false on failure.
定义位置
  • wp-includes/blocks.php
    , line 548
引入
5.0.0
弃用

Unregisters a block type.

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