GC_Block_Styles_Registry::is_registered()

最后更新于:2021-11-26 10:43:31

GC_Block_Styles_Registry::is_registered( string$block_name, string$block_style_name)

Checks if a block style is registered.

参数

$block_name

(string) (Required) Block type name including namespace.

$block_style_name

(string) (Required) Block style name.

响应

(bool) True if the block style is registered, false otherwise.

源文件

文件: gc-includes/class-gc-block-styles-registry.php

	public function is_registered( $block_name, $block_style_name ) {
		return isset( $this->registered_block_styles[ $block_name ][ $block_style_name ] );
	}