unregister_block_style

函式
unregister_block_style ( $block_name, $block_style_name )
引數
  • (string) $block_name Block type name including namespace.
    Required:
  • (string) $block_style_name Block style name.
    Required:
返回值
  • (bool) True if the block style was unregistered with success and false otherwise.
定義位置
相關方法
register_block_styleunregister_block_typeregister_block_typeregister_block_style_handleunregister_post_type
引入
5.3.0
棄用
-

unregister_block_style: 這個函式取消註冊一個自定義的塊樣式。它有兩個引數:$block_name,是塊的名稱,$style_handle,是樣式的名稱。

取消註冊一個區塊樣式。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function unregister_block_style( $block_name, $block_style_name ) {
return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
}
function unregister_block_style( $block_name, $block_style_name ) { return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name ); }
function unregister_block_style( $block_name, $block_style_name ) {
	return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
}

常見問題

FAQs
檢視更多 >