WordPress开发者和主题制作者的搜索引擎



register_block_core_tag_cloud ›

Sincen/a
已弃用n/a
register_block_core_tag_cloud ( 没有参数 )
定义在:
文档:

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