WP_Block_Pattern_Categories_Registry::get_all_registered( bool $outside_init_only = false ): array[]

In this article

Retrieves all registered pattern categories.

Parameters

$outside_init_onlybooloptional
Return only categories registered outside the init action.

Default:false

Return

array[] Array of arrays containing the registered pattern categories properties.

Source

public function get_all_registered( $outside_init_only = false ) {
	return array_values(
		$outside_init_only
			? $this->registered_categories_outside_init
			: $this->registered_categories
	);
}

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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