Hello,
I’m looking for a function or another method to format block data coming from the parse_blocks function so that it resembles the structure returned by get_fields() inside a block’s render_callback.
The issue is that parse_blocks doesn’t prepare repeater elements as arrays, for example — it outputs things like slider_0_heading, etc.
I’ve written a helper function to handle this, but I’m concerned there might be too many edge cases. So I’m looking for a native ACF function or a proven method you use to process this kind of data.