A WordPress-centric search engine for devs and theme authors



rest_envelope_response ›

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_envelope_response', $envelope, $response )
Parameters: (2)
  • (array) $envelope Envelope data.
    Required: Yes
  • (WP_REST_Response) $response Original response data.
    Required: Yes
Defined at:
Codex:

Filters the enveloped form of a response.





Source

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