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



register_block_core_archives ›

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

Register archives block.



源码

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