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

WP_Block_Type_Registry::get_all_registered() public WP 5.0.0

Retrieves all registered block types.

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

Хуков нет.

Возвращает

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

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

$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() WP 5.5.1

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