Returns a joined string of the aggregate serialization of the given parsed blocks.
$blocksarray[]required
...$0 arrayblockName stringattrs arrayinnerBlocks array[]innerHTML stringinnerContent arrayfunction serialize_blocks( $blocks ) {
return implode( '', array_map( 'serialize_block', $blocks ) );
}
| Version | Description |
|---|---|
| 5.3.1 | Introduced. |
You must log in before being able to contribute a note or feedback.
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/serialize_blocks