register_block_core_rss

The timeline below displays how wordpress function register_block_core_rss has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Registers the `core/rss` block on server.
 */
function register_block_core_rss()
{
    register_block_type_from_metadata(__DIR__ . '/rss', array('render_callback' => 'render_block_core_rss'));
}

WordPress Version: 5.3

/**
 * Registers the `core/rss` block on server.
 */
function register_block_core_rss()
{
    register_block_type('core/rss', array('attributes' => array('align' => array('type' => 'string', 'enum' => array('left', 'center', 'right', 'wide', 'full')), 'className' => array('type' => 'string'), 'columns' => array('type' => 'number', 'default' => 2), 'blockLayout' => array('type' => 'string', 'default' => 'list'), 'feedURL' => array('type' => 'string', 'default' => ''), 'itemsToShow' => array('type' => 'number', 'default' => 5), 'displayExcerpt' => array('type' => 'boolean', 'default' => false), 'displayAuthor' => array('type' => 'boolean', 'default' => false), 'displayDate' => array('type' => 'boolean', 'default' => false), 'excerptLength' => array('type' => 'number', 'default' => 55)), 'render_callback' => 'render_block_core_rss'));
}

WordPress Version: 5.2

/**
 * Registers the `core/rss` block on server.
 */
function register_block_core_rss()
{
    register_block_type('core/rss', array('attributes' => array('columns' => array('type' => 'number', 'default' => 2), 'blockLayout' => array('type' => 'string', 'default' => 'list'), 'feedURL' => array('type' => 'string', 'default' => ''), 'itemsToShow' => array('type' => 'number', 'default' => 5), 'displayExcerpt' => array('type' => 'boolean', 'default' => false), 'displayAuthor' => array('type' => 'boolean', 'default' => false), 'displayDate' => array('type' => 'boolean', 'default' => false), 'excerptLength' => array('type' => 'number', 'default' => 55)), 'render_callback' => 'render_block_core_rss'));
}