Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_namespace_index ›

Desde4.4.0
Obsoleton/a
apply_filters( 'rest_namespace_index', $response, $request )
Parâmetros: (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
Definido em:
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.





Fonte

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