Home Forums Gutenberg Access innerBlocks in parent


Access innerBlocks in parent

  • Is there a way to access the data of <innerBlocks /> in the parent block render template? For example, a wrapper block that contains a number of item blocks in <innerBlocks /> being able to know the number of items as well as the value of the “Label” field and the inner block’s block ID.

  • It’s the $content parameter in the template.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.