WP_Block_Type_Registry::get_registered( string $name )

Retrieves a registered block type.

Parameters Parameters


(string) (Required) Block type name including namespace.

Top ↑

Return Return

(WP_Block_Type|null) The registered block type, or null if it is not registered.

Top ↑

Source Source

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

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

		return $this->registered_block_types[ $name ];

Top ↑

Changelog Changelog

Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.