WordPress at a glance
function is not described

WP_Block_Type_Registry::get_registered() public WP 5.0.0

Retrieves a registered block type.

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

No Hooks.

Return

WP_Block_Type/null. The registered block type, or null if it is not registered.

Usage

$WP_Block_Type_Registry = new WP_Block_Type_Registry();
$WP_Block_Type_Registry->get_registered( $name );
$name(string) (required)
Block type name including namespace.

Changelog

Since 5.0.0 Introduced.

Code of WP_Block_Type_Registry::get_registered() WP 5.5.3

<?php
public function get_registered( $name ) {
	if ( ! $this->is_registered( $name ) ) {
		return null;
	}

	return $this->registered_block_types[ $name ];
}