_flatten_blocks


_flatten_blocks ( $blocks )

Access:
  • private
Parameters:
  • (array) blocks array of blocks.
Returns:
  • (array) block references to the passed blocks and their inner blocks.
Defined at:

Description

Returns an array containing the references of the passed blocks and their inner blocks.

Related Functions

filter_block_kses, parse_blocks, has_blocks, _fix_attachment_links, wp_filter_out_block_nodes

Top Google Results

User discussions

wpseek mobile