WordPress Version: 5.5
/**
* Registers the `core/block` block.
*/
function register_block_core_block()
{
register_block_type_from_metadata(__DIR__ . '/block', array('render_callback' => 'render_block_core_block'));
}
The timeline below displays how wordpress function register_block_core_block has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Registers the `core/block` block.
*/
function register_block_core_block()
{
register_block_type_from_metadata(__DIR__ . '/block', array('render_callback' => 'render_block_core_block'));
}
/**
* Registers the `core/block` block.
*/
function register_block_core_block()
{
register_block_type('core/block', array('attributes' => array('ref' => array('type' => 'number')), 'render_callback' => 'render_block_core_block'));
}