flatten_blocks( $blocks )
flattens a list of blocks and nested blocks into a single layer for easier parsing when making decisions around content based on block attributes.
happyprime / common-block-functions Goto Github PK
View Code? Open in Web Editor NEWA function used to flatten blocks. Maybe one day a handful of functions to work with flattened blocks ๐คท๐ปโโ๏ธ
License: MIT License