WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 Feb 7 '14 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 – Seamus Leahy Feb 8 '14 at 5:14
    
This is an event thrown when a blog was created, not a way to create it – bleemboy Mar 6 at 9:37
up vote 0 down vote accepted

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

share|improve this answer
    
Please extend the answer since link only answers are not recommended, thanks. – birgire Mar 12 at 8:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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