W3cubDocs

/WordPress

register_block_core_categories()

Registers the core/categories block on server.

Description

Source

File: wp-includes/blocks/categories.php

function register_block_core_categories() {
	register_block_type(
		'core/categories',
		array(
			'render_callback' => 'render_block_core_categories',
		)
	);
}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/register_block_core_categories