wp abs create_portable_block myblock --title='This is myblock' --desc='This block is used for wds.' --keyword='mykeyword' --icon='table-row-before'
Which should create a new folder blocks/myblock (the command will fail if the folder already exists) with block.json and other files used to register the ACF Block.
the block should be available on the block selector under the category WDS Blocks:
Description
Call To Action Example (included in this PR) was created with:
wp abs create_portable_block call-to-action --title='Call to Action' --desc='This block is used for wds.' --keyword='call-to-action' --icon='megaphone'
Closes #WDSUS-7
Adds initial support for WP-CLI command
wp abs create_portable_block
.What type of PR is this? (put an x to all applicable)
Link to test
On a terminal run the following WP-CLI command
Which should create a new folder
blocks/myblock
(the command will fail if the folder already exists) withblock.json
and other files used to register the ACF Block.the block should be available on the block selector under the category
WDS Blocks
:Description
Call To Action
Example (included in this PR) was created with:Edit page:
Frontend and preview:
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
Others
[optional] Are there any post-deployment tasks we need to perform?