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

Plugin tags