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



rest_envelope_response › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_envelope_response', $envelope, $response )
Parameters: (2)
  • () envelope { Envelope data. @type array $body Response data. @type int $status The 3-digit HTTP status code. @type array $headers Map of header name to header value. }
    Required: Yes
  • () response Original response data.
    Required: Yes
Defined at:
Codex:

Filters the enveloped form of a REST API response.





Source

$envelope = apply_filters( 'rest_envelope_response', $envelope, $response );