register_block_type( ... )

Registers a block type. The recommended way is to register a block type using the metadata stored in the `block.json` file.

Parameters:
  • $block_type string | WP_Block_Type
  • $args array