Summery Summery
Checks if a block type is registered.
Syntax Syntax
Parameters Parameters
- $name
-
(Required) Block type name including namespace.
Return Return
(bool) True if the block type is registered, false otherwise.
Source Source
File: wp-includes/class-wp-block-type-registry.php
*/ public function is_registered( $name ) { return isset( $this->registered_block_types[ $name ] );
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |