This template will scaffold a plugin that is set up for registering dynamic block using the @wordpress/create-block
tool.
Run the following in the terminal of your choice:
npx @wordpress/create-block example-plugin --template @robcruiz/dynamic-block-template
Once the command has completed, the following structure will be created:
- build
- src
--> {example-block}
---> block.json
---> edit.js
---> editor.scss
---> index.js
---> style.scss
.editorconfig
.eslintrc
.gitignore
class-DynamicBlock.php
{example-block}.php
package.json
package-lock.json