WPDev.one
Core Class

WP_Block_Type_Registry

class WP_Block_Type_Registry // Constructor: function Object() { [native code] }

Core class used for interacting with block types.

Methods 7 methods

Method / Return Description
register()
(WP_Block_Type

Registers a block type.

Parameters: $name: mixed, $args: mixed
unregister()
(WP_Block_Type

Unregisters a block type.

Parameters: $name: mixed
get_registered()
(WP_Block_Type

Retrieves a registered block type.

Parameters: $name: mixed
get_all_registered()
WP_Block_Type[]

Retrieves all registered block types.

is_registered()
bool

Checks if a block type is registered.

Parameters: $name: mixed
__wakeup()
void

No description available.

get_instance()
WP_Block_Type_Registry

Utility method to retrieve the main instance of the class.

Properties

Property / Type Description
$registered_block_types
mixed
public
No description available.
$instance
mixed
public
No description available.

Class Information

Since Version
5.0.0
Source File
wp-includes/class-wp-block-type-registry.php
Advertisement