WordPress开发者和主题制作者的搜索引擎



rest_envelope_response ›

Since4.4.0
已弃用n/a
apply_filters( 'rest_envelope_response', $envelope, $response )
参数: (2)
  • (array) $envelope Envelope data.
    Required: Yes
  • (WP_REST_Response) $response Original response data.
    Required: Yes
定义在:
文档:

Filters the enveloped form of a response.





源码

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