Used By
Used By | Description |
---|---|
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::get_namespace_index() | Retrieves the index for a namespace. |
Filters the namespace index data.
This typically is just the route data for the namespace, but you can add any data you’d like here.
(WP_REST_Response) Response data.
(WP_REST_Request) Request data. The namespace is passed as the 'namespace' parameter.
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_namespace_index