On this page
apply_filters( 'rest_index', WP_REST_Response $response, WP_REST_Request $request )
Filters the REST API root index data.
Description
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.
Parameters
$responseWP_REST_Response-
Response data.
$requestWP_REST_Request-
Request data.
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
return apply_filters( 'rest_index', $response, $request );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Server::get_index() wp-includes/rest-api/class-wp-rest-server.php | Retrieves the site index. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_index