Playground
-
Early version Playground CLI testing

The work on Playground is ongoing, and soon the wp-now cli will be replaced by the wp-playground cli. It’s still in early stages, so the documentation is basic. It allows me to start a Playground instance from the folder of a theme or plugin I’m working on. It is also helpful for testing a blueprint locally before sharing it publicly or uploading it to the Blueprint Gallery Hard-Hat area. Enter at your own risk. What follows is the context and the commands that worked for me. There is no guarantee…
-
Automating WordPress Playground Screenshots with Node.js and Playwright

Users of the WordPress Theme directory can navigate block themes with Style Variations and see how they change the look at feel of a layout. The theme powering the WordPress repository uses WordPress Playground to load a site with the theme and its style variation and then takes a screenhost via the mshots API. The screenshots are stored on the server and make it possible to load style variations rapidly via the WordPress theme repository’s site. Now mshots API, built and used by Automattic, is publically available. However it’s mostly…