-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
[Aspect] Browser[Type] Developer Experience[Type] EnhancementNew feature or requestNew feature or request[Type] ExplorationAn exploration that may or may not result in mergable codeAn exploration that may or may not result in mergable code[Type] Mindmap Node
Description
Description
Let's add an easy way to start Playground in a Multisite mode. Perhaps a predefined Blueprint triggered by ?multisite
would do the trick? Like this one used to support gutenberg-pr
:
function applyGutenbergPRSteps(prNumber: number): StepDefinition[] { |
Technical steps
Multisite settings can be enabled using the following Blueprint:
{
"landingPage":"/wp-admin/network.php",
"steps": [
{ "step":"login" },
{
"step": "defineWpConfigConsts",
"consts": {
"WP_ALLOW_MULTISITE": true
}
}
]
}
You still need to manually deactivate the importer plugin to be able to configure the network:

Once you do, WordPress asks you for the typical multisite setup:

define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', 'playground.wordpress.net' );
define( 'PATH_CURRENT_SITE', '/scope:0.4195830517819887/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
These constants can be set using the "defineWpConfigConsts"
, except it's not straightforward for the scoped path.
soderlind
Metadata
Metadata
Assignees
Labels
[Aspect] Browser[Type] Developer Experience[Type] EnhancementNew feature or requestNew feature or request[Type] ExplorationAn exploration that may or may not result in mergable codeAn exploration that may or may not result in mergable code[Type] Mindmap Node