WordPress at a glance
function is not described

serialize_blocks() WP 5.3.1

Returns a joined string of the aggregate serialization of the given parsed blocks.

No Hooks.

Return

String. String of rendered HTML.

Usage

serialize_blocks( $blocks );
$blocks(WP_Block_Parser_Block[]) (required)
Parsed block objects.

Changelog

Since 5.3.1 Introduced.

Code of serialize_blocks() WP 5.7.2

<?php
function serialize_blocks( $blocks ) {
	return implode( '', array_map( 'serialize_block', $blocks ) );
}