WP_REST_Server::get_namespaces(): string[]

In this article

Retrieves namespaces registered on the server.

Return

string[] List of registered namespaces.

Source

public function get_namespaces() {
	return array_keys( $this->namespaces );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.