You are here

function gutenberg_register_block_core_block in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 vendor/gutenberg/block-library/blocks/block.php \gutenberg_register_block_core_block()

Registers the `core/block` block.

1 string reference to 'gutenberg_register_block_core_block'
block.php in vendor/gutenberg/block-library/blocks/block.php

File

vendor/gutenberg/block-library/blocks/block.php, line 35

Code

function gutenberg_register_block_core_block() {
  register_block_type_from_metadata(__DIR__ . '/block', array(
    'render_callback' => 'gutenberg_render_block_core_block',
  ));
}