Summery Summery
Retrieves an array containing the properties of a registered pattern category.
Syntax Syntax
Parameters Parameters
- $category_name
-
(Required) Pattern category name.
Return Return
(array) Registered pattern properties.
Source Source
File: wp-includes/class-wp-block-pattern-categories-registry.php
public function get_registered( $category_name ) { if ( ! $this->is_registered( $category_name ) ) { return null; } return $this->registered_categories[ $category_name ]; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |