WordPress at Your Fingertips
filter is not described

rest_namespace_index filter-hook . WP 4.4.0

Filters the REST API 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_9906', 10, 2 );
function filter_function_name_9906( $response, $request ){
	// filter...

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

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.