A WordPress-centric search engine for devs and theme authors



rest_pre_echo_response ›

Since4.8.1
Deprecatedn/a
apply_filters( 'rest_pre_echo_response', $result, $this, $request )
Parameters: (3)
  • (array) $result Response data to send to the client.
    Required: Yes
  • (WP_REST_Server) $this Server instance.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Defined at:
Codex:

Filters the API response.

Allows modification of the response data after inserting embedded data (if any) and before echoing the response data.





Source

$result = apply_filters( 'rest_pre_echo_response', $result, $this, $request );