Skip to content
Controls

Deprecated Inner Blocks Control

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:

  1. Add the <InnerBlocks /> component to your block output code (both Frontend and Editor):

    Adding InnerBlocks component to block output
  2. Remove the Inner Blocks control:

    Removing deprecated Inner Blocks control
  3. 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.

Deprecated Inner Blocks Control

Inner Blocks control creates a nested blocks area in your block. You can only use one Inner Blocks control per block.

Usage

PHP
<div>
  <?php echo $attributes['control_name']; ?>
</div>
Handlebars
<div>
  {{{control_name}}}
</div>

When using Handlebars, use triple curly brackets to output HTML: {{{ and }}}

Inner Blocks cannot be used as Meta fields.

Was this article helpful?