GC_Block_Patterns_Registry::is_registered()
最后更新于:2021-11-26 10:15:08
GC_Block_Patterns_Registry::is_registered( string$pattern_name)Checks if a pattern is registered.
参数
- $pattern_name
-
(string) (Required) Pattern name including namespace.
响应
(bool) True if the pattern is registered, false otherwise.
源文件
文件: gc-includes/class-gc-block-patterns-registry.php
public function is_registered( $pattern_name ) {
return isset( $this->registered_patterns[ $pattern_name ] );
}