Core Function
View Source on Trac ↗ _flatten_blocks()
_flatten_blocks( mixed $blocks ) Returns an array containing the references of
Parameters 1 required
| Name / Type | Description |
|---|---|
| $blocks array | array of blocks. Required |
Return Value
(array)
block references to the passed blocks and their inner blocks.
Function Information
Since Version
5.9.0
Source File
wp-includes/block-template-utils.php
Advertisement