GC_Block_Styles_Registry::get_registered()
最后更新于:2021-11-26 10:38:12
GC_Block_Styles_Registry::get_registered( string$block_name, string$block_style_name)Retrieves an array containing the properties of a registered block style.
参数
- $block_name
-
(string) (Required) Block type name including namespace.
- $block_style_name
-
(string) (Required) Block style name.
响应
(array) Registered block style properties.
源文件
文件: gc-includes/class-gc-block-styles-registry.php
public function get_registered( $block_name, $block_style_name ) {
if ( ! $this->is_registered( $block_name, $block_style_name ) ) {
return null;
}
return $this->registered_block_styles[ $block_name ][ $block_style_name ];
}