WP_Block_Type_Registry::get_all_registered()publicWP 5.0.0

Retrieves all registered block types.

Method of the class: WP_Block_Type_Registry{}

No Hooks.

Return

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

Usage

$WP_Block_Type_Registry = new WP_Block_Type_Registry();
$WP_Block_Type_Registry->get_all_registered();

Changelog

Since 5.0.0 Introduced.

WP_Block_Type_Registry::get_all_registered() code WP 6.1.1

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