apply_filters( 'rest_namespace_index', WP_REST_Response $response, WP_REST_Request $request )

Filters the namespace index data.


Description

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


Parameters

$response

Response data.

$request

Request data. The namespace is passed as the 'namespace' parameter.


Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.