WordPress at a glance
filter is not described

rest_index filter-hook . WP 4.4.0

Filters the 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.


add_filter( 'rest_index', 'filter_function_name_6051' );
function filter_function_name_6051( $response ){
	// filter...

	return $response;
Response data.


Since 4.4.0 Introduced.

Where the hook is called

wp-includes/rest-api/class-wp-rest-server.php 1051
return apply_filters( 'rest_index', $response );

Where the hook is used (in WP core)

Usage not found!