WP_Block_Pattern_Categories_Registry::get_registered( string $category_name ): array

In this article

Retrieves an array containing the properties of a registered pattern category.

Parameters

$category_namestringrequired
Pattern category name including namespace.

Return

array Registered pattern properties.

Source

public function get_registered( $category_name ) {
	if ( ! $this->is_registered( $category_name ) ) {
		return null;
	}

	return $this->registered_categories[ $category_name ];
}

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.