devgeniem/tms-plugin-network-site-list

Provides a REST endpoint that lists the sites in a network installation.

Installs: 1 767

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 17

Forks: 0

Open Issues: 0

Type:wordpress-plugin

pkg:composer/devgeniem/tms-plugin-network-site-list

1.2.0 2023-06-01 17:46 UTC

This package is auto-updated.

Last update: 2025-09-29 02:58:52 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.