Filters the REST API root index data.
This contains the data describing the API. This includes information about supported authentication schemes, supported namespaces, routes available on the API, and a small amount of data about the site.
$responseWP_REST_Response
$requestWP_REST_Request
return apply_filters( 'rest_index', $response, $request );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_index