Talk

Code, Test, Repeat: Accelerating Development with WordPress Playground

Event
WordCamp Skopje 2024
Date
19 October 2024
Length
40 min

Setting up a place to try something in WordPress often takes longer than the thing you wanted to try: a local stack, a database, matching versions, and the differences between one machine and the next. WordPress Playground skips all of it. It is a full WordPress that runs in a browser tab, with no server and no database to install.

This talk looks at Playground from a developer’s side: why working in it is faster, what it is good for, how it compares with a traditional local setup, where its limits are, and the tools around it, which are Blueprints, the Query API and wp-now.

What the talk covers

  • What Playground is and why it was built: slow setups, complex environments and databases to keep in sync.
  • Why it is faster: WordPress loads in seconds, there is no local environment to maintain, a site can be thrown away and started again, and a new developer needs no setup at all.
  • What it is good for: quick prototypes, plugin and theme development, and manual and automated testing.
  • How it compares with a local stack such as MAMP, Docker or Vagrant.
  • The limits: no access to the plugin and theme directories by default, everything is gone when you refresh, PHP run from a Blueprint has to load wp-load.php first, and only part of WP-CLI works.
  • Examples: the Blueprints gallery, the Query API that installs a theme or a plugin from the address alone, loading code from GitHub, and wp-now for running a plugin or theme folder on your own machine.

Where it was given

It was first given at WordCamp Skopje 2024 as a 40-minute talk, and then at WordCamp Larissa 2024 in 45 minutes. At WordPress Day for Developers in Lisbon it ran as a two-hour hands-on session with two exercises: exploring Playground, and building a first Blueprint.

Slides

Links

← All talks