serialize_blocks

Advertisement

Summery Summery

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

Syntax Syntax

serialize_blocks( WP_Block_Parser_Block[] $blocks )

Parameters Parameters

$blocks

(Required) Parsed block objects.

Return Return

(string) String of rendered HTML.

Source Source

File: wp-includes/blocks.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.1 Introduced.

Advertisement

Leave a Reply