function gutenberg_register_block_core_archives in Gutenberg 8
Same name and namespace in other branches
- 8.2 vendor/gutenberg/block-library/blocks/archives.php \gutenberg_register_block_core_archives()
Register archives block.
1 string reference to 'gutenberg_register_block_core_archives'
- archives.php in vendor/
gutenberg/ block-library/ blocks/ archives.php
File
- vendor/
gutenberg/ block-library/ blocks/ archives.php, line 118
Code
function gutenberg_register_block_core_archives() {
register_block_type('core/archives', array(
'attributes' => array(
'align' => array(
'type' => 'string',
'enum' => array(
'left',
'center',
'right',
'wide',
'full',
),
),
'className' => array(
'type' => 'string',
),
'displayAsDropdown' => array(
'type' => 'boolean',
'default' => false,
),
'showPostCounts' => array(
'type' => 'boolean',
'default' => false,
),
),
'render_callback' => 'gutenberg_render_block_core_archives',
));
}