Controls
Inner Blocks
The Inner Blocks control deprecated since v3.4.0, you should migrate to the <InnerBlocks /> component as this control will be removed in future plugin updates.
Everything you need to do is remove the deprecated control from your block and add the <InnerBlocks /> component in the block output code.
Migrating to <InnerBlocks /> component
-
Add the <InnerBlocks /> component into your block output code (for both Frontend and Editor)
-
Remove the Inner Blocks control
-
Read the documentation for the <InnerBlocks /> component read here and its unique features.
Documentation for deprecated Inner Blocks control
You can use only a single Inner Blocks control per block.
Inner Blocks control creates a nested area and lets you insert all available blocks inside it. See examples below to use this control.
Usage
PHP
<p>
<?php echo $attributes['control_name']; ?>
</p>
Handlebars
<p>
{{{control_name}}}
</p>
Please be aware to output HTML in Handlebars, you should use the triple curly bracket – open
{{{
and close }}}
Post Meta
It is not possible to use InnerBlocks as Meta fields.