Support

Account

Home Forums Gutenberg Check if Innerblocks is empty Reply To: Check if Innerblocks is empty

  • Hey,

    Solving is a default state for posts once they’ve had a reply. It doesn’t mean anything related to our backlog as this is a community support forum.

    Feature requests should be made on advancedcustomfields.com/feedback and bugs reported via the support team.

    That said, this isn’t something we can fix our side. We use the WordPress provided logic here. The code sample provided above, using parse_blocks would be incredibly inefficient to do on a production site as it’s very expensive, and you’ll be parsing the whole page twice essentially.

    The way blocks render, it’s not really viable for this to possible as blocks work without awareness of each other, outside of context – but if it were to become so, it would need to be provided by Gutenberg.