WordPress开发者和主题制作者的搜索引擎



unregister_block_type ›

Since5.0.0
已弃用n/a
unregister_block_type ( $name )
参数:
  • (string|WP_Block_Type) $name Block type name including namespace, or alternatively a complete WP_Block_Type instance.
    Required: Yes
返回:
  • (WP_Block_Type|false) The unregistered block type on success, or false on failure.
定义在:
文档:

Unregisters a block type.



源码

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