WP_Block_Pattern_Categories_Registry::get_all_registered() WordPress Method

The WP_Block_Pattern_Categories_Registry::get_all_registered() method is used to retrieve all registered block pattern categories.

WP_Block_Pattern_Categories_Registry::get_all_registered( bool $outside_init_only = false ) #

Retrieves all registered pattern categories.


Parameters

$outside_init_only

(bool)(Optional)Return only categories registered outside the init action.

Default value: false


Top ↑

Return

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


Top ↑

Source

File: wp-includes/class-wp-block-pattern-categories-registry.php

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

Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.