Summery Summery
Retrieves a registered block type.
Syntax Syntax
Parameters Parameters
- $name
-
(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
*/ public function get_registered( $name ) { if ( ! $this->is_registered( $name ) ) { return null; } return $this->registered_block_types[ $name ];
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |