register_block_core_archives()

Register archives block.


Description Description


Source Source

File: wp-includes/blocks/archives.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',
		)
	);
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.