multisite icon indicating copy to clipboard operation
multisite copied to clipboard

Get Sites List in Multisite Install

Open misfist opened this issue 10 years ago • 2 comments

If the API is installed on a site-by-site basis, does the API provide any means for getting a listing of sites? WP itself has wp_get_sites(), but if one wanted to use the API to get content from across a network of sites, how would one get a list of sites to make the rests to?

misfist avatar Apr 23 '15 16:04 misfist

+1

adambiggs avatar Dec 10 '15 20:12 adambiggs

I don't know if this is the best solution, but I ended up creating a small plugin to handle this.

https://github.com/misfist/wp-multisite-rest-api

misfist avatar Dec 10 '15 20:12 misfist