Open
Description
Blueprint:
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/",
"features": {
"networking": true
},
"plugins": [
"https://github-proxy.com/proxy/?repo=soderlind/super-admin-all-sites-menu"
],
"siteOptions": {
"blogname": "Main site"
},
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "restricted-site-access"
},
"options": {
"activate": false
}
},
{
"step": "enableMultisite"
},
{
"step": "wp-cli",
"command": "wp site create --slug=site01"
},
{
"step": "wp-cli",
"command": "wp site create --slug=site02"
},
{
"step": "wp-cli",
"command": "wp site create --slug=site03"
},
{
"step": "wp-cli",
"command": "wp site create --slug=site04"
},
{
"step": "wp-cli",
"command": "wp site create --slug=site05"
},
{
"step": "login",
"username": "admin"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/allsitesmenu-notice.php",
"data": "<?php add_action('admin_notices', function() { echo '<div class=\"notice notice-info is-dismissible\"><p>Check All Sites in the admin bar.</p></div>'; });"
}
]
}
URL to the main site is https://playground.wordpress.net/scope:SCOPE-NAME/wp-admin/
But the subsites get the url https://playground.wordpress.net/site01/wp-admin/
eg, without scope, so if I try to go to the subsite site, I'm redirected to main.