Skip to content

Add Multisite Support#95

Open
mralaminahamed wants to merge 1 commit intoaaemnnosttv:masterfrom
mralaminahamed:feature/multisite-support
Open

Add Multisite Support#95
mralaminahamed wants to merge 1 commit intoaaemnnosttv:masterfrom
mralaminahamed:feature/multisite-support

Conversation

@mralaminahamed
Copy link
Copy Markdown

@mralaminahamed mralaminahamed commented Feb 26, 2026

This PR adds support for creating WordPress multisite installations with the wp valet new command.

Changes

New Options

  • --network - Install WordPress as a multisite network
  • --subdomains - Use subdomains for multisite (implies --network)

Files Changed

File Changes
src/ValetCommand.php Added --network and --subdomains options to docblock
src/Props.php Added isMultisite() and isSubdomains() methods
src/Installer/WordPressInstaller.php Added runMultisiteInstall() method using wp core multisite-install

Usage

# Subdirectory multisite (default)
wp valet new mysite --network

# Subdomain multisite
wp valet new mysite --network --subdomains

# Portable multisite (SQLite + HTTP)
wp valet new mysite --portable --network

Backward Compatibility

  • Single site installations work as before (default)
  • Bedrock projects inherit multisite support via parent class

Testing

Tested with:

  • Single site install (default)
  • Multisite with subdirectories
  • Multisite with subdomains
  • Portable multisite with SQLite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant