register_block_core_gallery()WP 1.0

Registers the core/gallery block on server.

Хуков нет.

Возвращает

null. Ничего.

Использование

register_block_core_gallery();

Код register_block_core_gallery() WP 6.0.2

function register_block_core_gallery() {
	register_block_type_from_metadata(
		__DIR__ . '/gallery',
		array(
			'render_callback' => 'block_core_gallery_render',
		)
	);
}