Directory / plugin
Network Rest Site List
v1.0.0 ยท by David Sword
Simple small Wordpress plugin that creates a REST endpoint to list all sites and their IDs in a Wordpress Multisite Network.
About this plugin
๐ Access the endpoint with /wp-json/ntwrkrst/v1/wpsitelist – which returns:
`
{
“123”: {
“blog_id” : “123”,
“domain”:”example.com”,
“path”:”\/main\/”
}
// etc
}
`
๐ฌ Query sites path with a search, similar to /wp-json/ntwrkrst/v1/wpsitelist?q=keyword
๐ฆ Cache’s for 24h
โ๏ธ Built primarily for this Alfred workflow to quickly find a sites blog_id