WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_index

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/class-wp-rest-server.php apply_filters 1277 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
WP_REST_Response $response Response data.
WP_REST_Request $request Request data.