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_2023' );
function filter_function_name_2023( $response ){
	// filter...

	return $response;
Response data.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.