A WordPress-centric search engine for devs and theme authors



rest_index ›

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_index', $response )
Parameters:
  • (WP_REST_Response) $response Response data.
    Required: Yes
Defined at:
Codex:

Filters the API root index data.

This contains the data describing the API. This includes information about supported authentication schemes, supported namespaces, routes available on the API, and a small amount of data about the site.





Source

return apply_filters( 'rest_index', $response );