注册档案块。

原型

register_block_core_archives()

源文件

路径:wp-includes/blocks/archives.php

<?php
...
function register_block_core_archives() {
	register_block_type(
		'core/archives',
		array(
			'attributes'      => array(
				'align'             => array(
					'type' => 'string',
				),
				'className'         => array(
					'type' => 'string',
				),
				'displayAsDropdown' => array(
					'type'    => 'boolean',
					'default' => false,
				),
				'showPostCounts'    => array(
					'type'    => 'boolean',
					'default' => false,
				),
			),
			'render_callback' => 'render_block_core_archives',
		)
	);
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/register_block_core_archives/