Filters the REST API namespace index data.
This typically is just the route data for the namespace, but you can add any data you’d like here.
$responseWP_REST_Response
$requestWP_REST_Request
'namespace' parameter.return apply_filters( 'rest_namespace_index', $response, $request );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_namespace_index