serialize_blocks() – Returns a joined string of the aggregate serialization of the given parsed blocks.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = serialize_blocks( $blocks );

Parameters

$blocks
( array[] ) required – An array of representative arrays of parsed block objects. See serialize_block().

Returns

string String of rendered HTML.

Source

File name: wordpress/wp-includes/blocks.php
Lines:

1 to 3 of 3
function serialize_blocks( $blocks ) {
  return implode( '', array_map( 'serialize_block', $blocks ) );
}
 

 View on GitHub View on Trac