WordPress at a glance
функция не описана

WP_Block_Pattern_Categories_Registry::get_registered() public WP 5.5.0

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

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

Хуков нет.

Возвращает

Array. Registered pattern properties.

Использование

$WP_Block_Pattern_Categories_Registry = new WP_Block_Pattern_Categories_Registry();
$WP_Block_Pattern_Categories_Registry->get_registered( $category_name );
$category_name(string) (required)
Pattern category name.

Changelog

Since 5.5.0 Introduced.

Код WP_Block_Pattern_Categories_Registry::get_registered() WP 5.5.1

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

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