apply_filters( 'rest_index', WP_REST_Response $response )

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

$response

(WP_REST_Response) Response data.

Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_index