1

Is there some API or plugin that allows for creation of sites on a multisite install? Jetpack doesn't seem to allow it, and the xml rpc doesn't seem to support multisite. Is there something I can use as a JSON API or some other sort of http call to do this?

3
  • 2
    There is nothing in core for this functionality, no. The only ways to create a new site are the wp-signup.php, for open systems, and the network admin add-new-site screen, for closed ones. There may be plugins to do this sort of thing.
    – Otto
    Commented Feb 7, 2014 at 19:37
  • wpmu_create_blog() appears to be the function you can call from within a WordPress plugin. codex.wordpress.org/WPMU_Functions/wpmu_create_blog Commented Feb 8, 2014 at 5:14
  • This is an event thrown when a blog was created, not a way to create it Commented Mar 6, 2016 at 9:37

1 Answer 1

1

I ended up creating one myself. I'm not sure if the new wordpress rest API contains functionality that duplicates this so you may want to investigate that first.

https://github.com/remkade/multisite-json-api

1
  • Please extend the answer since link only answers are not recommended, thanks.
    – birgire
    Commented Mar 12, 2016 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.