serialize_blocks

函数


serialize_blocks ( $blocks )
参数
  • (array[])
    $blocks
    An array of representative arrays of parsed block objects. See serialize_block().
    Required:
返回值
  • (string) String of rendered HTML.
定义位置
  • wp-includes/blocks.php
    , line 776
引入
5.3.1
弃用

返回给定解析的区块的聚合序列化的连接字符串。

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