devgeniem / tms-plugin-network-site-list
Provides a REST endpoint that lists the sites in a network installation.
Installs: 1 433
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 18
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: ^8.1
- composer/installers: ^v1.10.0|^2
Requires (Dev)
- devgeniem/geniem-rules-codesniffer: ^1
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-10-30 01:32:00 UTC
README
WordPress plugin for that provides a REST endpoint for listing all sites in a network installation.
Prerequisites
- WordPress Network installation
Routes
Route /wp-json/tms/sites/
returns site list as an array.
[
[
'ID' => 1,
'name' => 'foo',
],
[
'ID' => 2,
'name' => 'bar',
],
[
'ID' => 3,
'name' => 'baz',
],
]
Contributing
Contributions are highly welcome! Just leave a pull request of your awesome well-written must-have feature.