WordPress Playground web instance
https://playground.wordpress.net/ is a versatile web tool that allows developers to run WordPress in a browser without needing a server. This environment is particularly useful for testing plugins, themes, and other WordPress features quickly and efficiently.
Some key features:
- Browser-based: No local server setup required.
- Instant Setup: Run WordPress with a single click.
- Testing Environment: Ideal for testing plugins and themes.
The Query Params API allows you to directly load specific configurations into a Playground instance. This includes setting a particular WordPress version, theme, or plugin. You can also define more complex setups using blueprints (see examples here).
From the Playground website, some toolbars are also available to customize your Playground instance and provide quick access to some resources and utilities.
Customize Playground
On the toolbar, you'll find:
- Playground Settings: A panel for configuring your current instance, like PHP and WordPress versions.
- Playground Manager: This panel lets you manage WordPress Playground instances, allowing you to save, import, and export them.
Playground Settings
The options available from the Playground Settings Panel, correspond to the following Query API options:
language
: Sets the WordPress instance language.multisite
: Enables WordPress multisite support.networking
: Grants network access, allowing fetches from the WordPress plugin directory and internal WordPress APIs.php
: Specifies the PHP version for the instance.wp
: Defines the WordPress version.
Playground Manager
This panel enables users to manage Playground instances. It displays a list of saved Playgrounds and provides access to the current Playground's settings, along with a Save Button to store your configurations locally in your browser for later reloading.
Once you click on save, an instance will be stored with a generated name to be revisited anytime. The Playground Manager also has options to export(Additional actions menu) and import(Import actions menu) WordPress Playground instances:
Additional actions menu
- Export Pull Request to GitHub: This option allows you to export WordPress plugins, themes, and entire wp-content directories as pull requests to any public GitHub repository. Check here a demo of using this option.
- Download as zip: It creates a
.zip
with the setup of the Playground instance, including any themes or plugins installed. This.zip
won't include content and database changes. - Report error: If you have any issues with WP Playground, you can report it using the form available from this option. You can help resolve issues with Playground by sharing the error details with the development team behind Playground.
- View Blueprint: This option will open the current blueprint used for the Playground instance in the Blueprints Builder tool. From this tool you'll be able to edit the blueprint online and run a new Playground instance with your edited version of the blueprint.
Import actions menu
- Import from zip: It allows you to recreate a Playground instance using any
.zip
generated with the "Download as zip" option. - Preview a Gutenberg PR: Allow testers run branches from the Gutenberg repository to test pull requests instantly.
- Import from GitHub: This option allows you to import plugins, themes, and wp-content directories directly from your public GitHub repositories. To enable this feature, connect your GitHub account with WordPress Playground.
The site at https://playground.wordpress.net is there to support the community, but there are no guarantees it will continue to work if the traffic grows significantly.
If you need certain availability, you should host your own WordPress Playground.