Summery Summery
Checks if a pattern category is registered.
Syntax Syntax
Parameters Parameters
- $category_name
-
(Required) Pattern category name.
Return Return
(bool) True if the pattern category is registered, false otherwise.
Source Source
File: wp-includes/class-wp-block-pattern-categories-registry.php
public function is_registered( $category_name ) { return isset( $this->registered_categories[ $category_name ] ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |