WordPress Version: 6.1
/**
* Registers the `core/avatar` block on the server.
*/
function register_block_core_avatar()
{
register_block_type_from_metadata(__DIR__ . '/avatar', array('render_callback' => 'render_block_core_avatar'));
}
The timeline below displays how wordpress function register_block_core_avatar has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Registers the `core/avatar` block on the server.
*/
function register_block_core_avatar()
{
register_block_type_from_metadata(__DIR__ . '/avatar', array('render_callback' => 'render_block_core_avatar'));
}