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



rest_post_dispatch ›

Since4.5.0
已弃用n/a
apply_filters( 'rest_post_dispatch', rest_ensure_response( $result )
参数: (3)
  • (WP_HTTP_Response) $result Result to send to the client. Usually a WP_REST_Response.
    Required: Yes
  • (WP_REST_Server) $this Server instance.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
定义在:
文档:

Filters the API response.

Allows modification of the response before returning.





源码

$result = apply_filters( 'rest_post_dispatch', rest_ensure_response( $result ), $this, $request );