A WordPress-centric search engine for devs and theme authors



rest_namespace_index ›

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_namespace_index', $response, $request )
Parameters: (2)
  • (WP_REST_Response) $response Response data.
    Required: Yes
  • (WP_REST_Request) $request Request data. The namespace is passed as the 'namespace' parameter.
    Required: Yes
Defined at:
Codex:

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.





Source

return apply_filters( 'rest_namespace_index', $response, $request );