Thread Starter
fieron
(@fieron)
I’ve read all these articles. There is no answer to my question. To clarify, here is an example.
I have a variation
wp.blocks.registerBlockVariation('core/heading', {
name: 'heading-variation-1',
title: 'Heading Variation 1',
attributes: {
className: 'is-heading-variation-1',
level: 3,
},
})
Now I want to add this variation to the InnerBlocks.
const tpl = [
[ 'core/image', { } ],
…,
[ 'heading-variation-1', {}]
];
And it doesn’t work. And it doesn’t work with allowedBlocks.
What am I doing wrong? Or is there no such functionality?