WordPress at a glance
filter is not described

rest_namespace_index filter-hook . WP 4.4.0

Filters the namespace index data.

This typically is just the route data for the namespace, but you can add any data you'd like here.


add_filter( 'rest_namespace_index', 'filter_function_name_3482', 10, 2 );
function filter_function_name_3482( $response, $request ){
	// filter...

	return $response;
Response data.
Request data. The namespace is passed as the 'namespace' parameter.


Since 4.4.0 Introduced.

Where the hook is called

wp-includes/rest-api/class-wp-rest-server.php 1098
return apply_filters( 'rest_namespace_index', $response, $request );

Where the hook is used (in WP core)

Usage not found!