Filters the REST API namespace index data.
Description
This typically is just the route data for the namespace, but you can add any data you’d like here.
Parameters
$responseWP_REST_Response- Response data.
$requestWP_REST_Request- Request data. The namespace is passed as the
'namespace'parameter.
Source
return apply_filters( 'rest_namespace_index', $response, $request );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.