WP_Block_Type_Registry::get_all_registered() WordPress Method

The WP_Block_Type_Registry::get_all_registered() method is used to retrieve all registered block types. This includes both the built-in block types and any custom block types that have been registered.

WP_Block_Type_Registry::get_all_registered() #

Retrieves all registered block types.


Return

(WP_Block_Type[]) Associative array of $block_type_name => $block_type pairs.


Top ↑

Source

File: wp-includes/class-wp-block-type-registry.php

	public function get_all_registered() {
		return $this->registered_block_types;
	}

Top ↑

Changelog

Changelog
VersionDescription
5.0.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.