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_4403', 10, 2 );
function filter_function_name_4403( $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 1307
return apply_filters( 'rest_namespace_index', $response, $request );

Where in WP core the hook is used WordPress

Usage not found.