register_block_core_tag_cloud

The timeline below displays how wordpress function register_block_core_tag_cloud has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Registers the `core/tag-cloud` block on server.
 */
function register_block_core_tag_cloud()
{
    register_block_type_from_metadata(__DIR__ . '/tag-cloud', array('render_callback' => 'render_block_core_tag_cloud'));
}

WordPress Version: 5.3

/**
 * Registers the `core/tag-cloud` block on server.
 */
function register_block_core_tag_cloud()
{
    register_block_type('core/tag-cloud', array('attributes' => array('align' => array('type' => 'string', 'enum' => array('left', 'center', 'right', 'wide', 'full')), 'className' => array('type' => 'string'), 'taxonomy' => array('type' => 'string', 'default' => 'post_tag'), 'showTagCounts' => array('type' => 'boolean', 'default' => false)), 'render_callback' => 'render_block_core_tag_cloud'));
}

WordPress Version: 5.2

/**
 * Registers the `core/tag-cloud` block on server.
 */
function register_block_core_tag_cloud()
{
    register_block_type('core/tag-cloud', array('attributes' => array('taxonomy' => array('type' => 'string', 'default' => 'post_tag'), 'className' => array('type' => 'string'), 'showTagCounts' => array('type' => 'boolean', 'default' => false), 'align' => array('type' => 'string')), 'render_callback' => 'render_block_core_tag_cloud'));
}