How to add ‘transforms’ to custom block (when using wp-create-block)
-
I’m creating a (my first) custom block for adding fact boxes to articles. I’ve created the block with ‘innerBlocks’ and is nearly done, but I’m stuck adding the transforms property.
I want to be able to transform any block into my block (like a group block) and to be able to transfrom my block back into a group.
I’m using wp-create-block and it seems like I should add the transforms code in the block.json. But how do I add it there? The code in the documentation is for adding it without block.json.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add ‘transforms’ to custom block (when using wp-create-block)’ is closed to new replies.