wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_pre_echo_response › WordPress Filter Hooks

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

Filters the REST 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 );