Inner Blocks
Inner Blocks control is deprecated since v3.4.0. You need to migrate to the <InnerBlocks /> component as this control will be removed in future updates.
Migration Guide
Follow these steps to migrate from the deprecated control to the <InnerBlocks /> component:
-
Add the <InnerBlocks /> component to your block output code (both Frontend and Editor):
-
Remove the Inner Blocks control:
-
Learn more about <InnerBlocks /> component features in our documentation.
The new <InnerBlocks /> component provides better performance and more features than the deprecated control.
Deprecated Control Documentation
This documentation is for the deprecated control. We strongly recommend migrating to the new <InnerBlocks /> component.
Inner Blocks control creates a nested blocks area in your block. You can only use one Inner Blocks control per block.
Usage
<div>
<?php echo $attributes['control_name']; ?>
</div>
<div>
{{{control_name}}}
</div>
When using Handlebars, use triple curly brackets to output HTML: {{{
and }}}
Inner Blocks cannot be used as Meta fields.