serialize_blocks( WP_Block_Parser_Block[] $blocks )

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


Parameters Parameters

$blocks

(WP_Block_Parser_Block[]) (Required) Parsed block objects.


Top ↑

Return Return

(string) String of rendered HTML.


Top ↑

Source Source

File: wp-includes/blocks.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.3.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.