This playground below is embedded through the playground embedder plugin, with a simple blueprint to log in and install & activate a plugin (Yoast SEO):
[wp_playground width=1100 height=1000]
{
“landingPage”: “/wp-admin/”,
“preferredVersions”: {
“php”: “8.0”,
“wp”: “latest”
},
“steps”: [
{
“step”: “login”,
“username”: “admin”,
“password”: “password”
},
{
“step”: “installPlugin”,
“pluginZipFile”: {
“resource”: “wordpress.org/plugins”,
“slug”: “wordpress-seo”
},
“options”: {
“activate”: true
}
}
]
}
[/wp_playground]
The embed code used is:
[wp_playground width=1100 height=1000]
{
"landingPage": "/wp-admin/",
"preferredVersions": {
"php": "8.0",
"wp": "latest"
},
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "wordpress-seo"
},
"options": {
"activate": true
}
}
]
}
[/wp_playground]
Code language: PHP (php)