Our CI process sets up everything from scratch, including WordPress, and our WordPress is a multisite instance. Adding a site after the Multisite functionality has been setup is easy to do programatically, but the initial setup seems to need to be done manually.
Is there a way to setup the initial network tables without hitting install on the dashboard, maybe using WP-CLI or a build in method?
Our CI process sets up everything from scratch, including WordPress, and our WordPress is a multisite instance. Adding a site after the Multisite functionality has been setup is easy to do programatically, but the initial setup seems to need to be done manually.
Is there a way to setup the initial network tables without hitting install on the dashboard, maybe using WP-CLI or a build in method?
Share Improve this question edited Aug 22, 2019 at 5:58 bueltge 17.1k7 gold badges62 silver badges97 bronze badges asked Aug 21, 2019 at 18:53 The Pax BisonicaThe Pax Bisonica 1032 bronze badges1 Answer
Reset to default 2WP-CLI has a couple of commands to install Multisite (or convert a non-Multisite WP installation to Multisite):
wp core multisite-install
wp core multisite-convert
Are either of those what you're looking for?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745221375a4617264.html
评论列表(0条)