WordPress at a glance
function is not described

WP_Block_Patterns_Registry::get_registered() public WP 5.5.0

Retrieves an array containing the properties of a registered pattern.

{} It's a method of the class: WP_Block_Patterns_Registry{}

No Hooks.

Return

Array. Registered pattern properties.

Usage

$WP_Block_Patterns_Registry = new WP_Block_Patterns_Registry();
$WP_Block_Patterns_Registry->get_registered( $pattern_name );
$pattern_name(string) (required)
Pattern name including namespace.

Changelog

Since 5.5.0 Introduced.

Code of WP_Block_Patterns_Registry::get_registered() WP 5.5.1

<?php
public function get_registered( $pattern_name ) {
	if ( ! $this->is_registered( $pattern_name ) ) {
		return null;
	}

	return $this->registered_patterns[ $pattern_name ];
}