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



register_block_core_calendar ›

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

Registers the `core/calendar` block on server.



源码

function register_block_core_calendar() {
	register_block_type(
		'core/calendar',
		array(
			'attributes'      => array(
				'align'     => array(
					'type' => 'string',
				),
				'className' => array(
					'type' => 'string',
				),
				'month'     => array(
					'type' => 'integer',
				),
				'year'      => array(
					'type' => 'integer',
				),
			),
			'render_callback' => 'render_block_core_calendar',
		)
	);
}