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