GC_Block_Type_Registry::is_registered()
最后更新于:2021-11-26 11:21:25
GC_Block_Type_Registry::is_registered( string$name)Checks if a block type is registered.
参数
- $name
-
(string) (Required) Block type name including namespace.
响应
(bool) True if the block type is registered, false otherwise.
源文件
文件: gc-includes/class-gc-block-type-registry.php
public function is_registered( $name ) {
return isset( $this->registered_block_types[ $name ] );
}