GC_Block_Supports::register()
最后更新于:2021-11-26 10:56:02
GC_Block_Supports::register( string$block_support_name, array$block_support_config)Registers a block support.
参数
- $block_support_name
-
(string) (Required) Block support name.
- $block_support_config
-
(array) (Required) Array containing the properties of the block support.
源文件
文件: gc-includes/class-gc-block-supports.php
public function register( $block_support_name, $block_support_config ) {
$this->block_supports[ $block_support_name ] = array_merge(
$block_support_config,
array( 'name' => $block_support_name )
);
}