_wp_multiple_block_styles

函式
_wp_multiple_block_styles ( $metadata )
引數
  • (array) $metadata Metadata for registering a block type.
    Required:
返回值
  • (array) Metadata for registering a block type.
定義位置
相關方法
wp_enqueue_block_stylewp_enable_block_templateswp_enqueue_block_support_styleswp_get_global_styleswp_default_styles
引入
5.9.0
棄用
6.1.0

_wp_multiple_block_styles: 這個函式用來確定一個塊是否支援多種樣式。

允許多區塊樣式。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function _wp_multiple_block_styles( $metadata ) {
_deprecated_function( __FUNCTION__, '6.1.0' );
return $metadata;
}
function _wp_multiple_block_styles( $metadata ) { _deprecated_function( __FUNCTION__, '6.1.0' ); return $metadata; }
function _wp_multiple_block_styles( $metadata ) {
	_deprecated_function( __FUNCTION__, '6.1.0' );
	return $metadata;
}

常見問題

FAQs
檢視更多 >