wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_envelope_response › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'rest_envelope_response', $envelope, $response )
Parametry: (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. }
    Wymagane: Tak
  • () response Original response data.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the enveloped form of a REST API response.





Źródło

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