WordPress at Your Fingertips
filter is not described

rest_index filter-hook . WP 4.4.0

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.


add_filter( 'rest_index', 'filter_function_name_1011' );
function filter_function_name_1011( $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 1243
return apply_filters( 'rest_index', $response );

Where in WP core the hook is used WordPress

wp-includes/rest-api.php 212
add_filter( 'rest_index', 'rest_add_application_passwords_to_index' );