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



unregister_block_style ›

Since5.3.0
已弃用n/a
unregister_block_style ( $block_name, $block_style_name )
参数: (2)
  • (string) $block_name Block type name including namespace.
    Required: Yes
  • (array) $block_style_name Block style name.
    Required: Yes
返回:
  • (boolean) True if the block style was unregistered with success and false otherwise.
定义在:
文档:

Unregisters a block style.



源码

function unregister_block_style( $block_name, $block_style_name ) {
	return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
}