WordPress at a glance
function is not described

register_block_type() WP 5.0.0

Registers a block type.

No Hooks.

Return

WP_Block_Type/false. The registered block type on success, or false on failure.

Usage

register_block_type( $name, $args );
$name(string/WP_Block_Type) (required)
Block type name including namespace, or alternatively a complete WP_Block_Type instance. In case a WP_Block_Type is provided, the $args parameter will be ignored.
$args(array)

Array of block type arguments. Any arguments may be defined, however the ones described below are supported by default.

  • $render_callback (callable)
    Callback used to render blocks of this block type.

Default: empty array

Code of register block type: wp-includes/blocks.php VER 5.1.1

<?php
function register_block_type( $name, $args = array() ) {
	return WP_Block_Type_Registry::get_instance()->register( $name, $args );
}