Filter hook 'rest_index'
in WP Core File wp-includes/rest-api/class-wp-rest-server.php at line 1356
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/rest-api/class-wp-rest-server.php |
1356 |
Parameters
Type |
Name |
Description |
WP_REST_Response |
$response |
Response data. |
WP_REST_Request |
$request |
Request data. |
PHP Doc
/**
* 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.
*
* @since 4.4.0
* @since 6.0.0 Added `$request` parameter.
*
* @param WP_REST_Response $response Response data.
* @param WP_REST_Request $request Request data.
*/