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', ) ); }
Expand full source code Collapse full source code View on Trac