Block Sandbox archived
Block testing for meticulous WordPress creatives
by Tiny Pixel · github.com/kellymears/block-sandbox · website
★ 7stars
7composer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kellymears/block-sandbox/archive/refs/heads/master.zipAlso on Packagist as tiny-pixel/block-sandbox:
composer require tiny-pixel/block-sandboxFrom the readme
Block Editor Sandbox
This plugin registers a Sandbox posttype preset with a template including many common/core blocks in diverse arrangements. It requires zero configuration to start utilizing.
It was inspired by coblocks/block-unit-test (now godaddy/block-unit-test 😬).
In comparison, block-sandbox aims to be:
✅ Hackable, with an easy-to-read and fun-to-modify API
✅ Easy to keep updated as the block spec continues to change
✅ Not the intellectual property of Godaddy. Nothing against Rich Tabor (get it!) but no, thanks.
Simple usage
Programmatic usage & configuration
At a minimum you need to create the CPT, apply the template and register it with WordPress:
Additionally, there are several methods available for you to utilize in modifying the behavior of the plugin.
Append extra blocks
If you would like to add additional blocks to the template you can do so with the appendBlocks method.
Overwrite template
If you would like to wholesale replace the included template with your own you can do so using setTemplate. Just pass in an array of the blocks.
Modify labels
If you would like to change sandbox to something else you can do that using setLabel. It takes an array