WP_Block_Type_Registry::get_registered

Advertisement

Summery Summery

Retrieves a registered block type.

Syntax Syntax

WP_Block_Type_Registry::get_registered( string $name )

Parameters Parameters

$name

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

Return Return

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

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.