A WordPress-centric search engine for devs and theme authors



register_block_core_tag_cloud ›

Sincen/a
Deprecatedn/a
register_block_core_tag_cloud ( No parameters )
Defined at:
Codex:

Registers the `core/tag-cloud` block on server.



Source

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',
		)
	);
}