rest_pre_echo_response
目录
apply_filters( ‘rest_pre_echo_response’, array $result , WP_REST_Server $this , WP_REST_Request $request )
过滤器::过滤API响应。Filter Hook: Filters the API response.
说明(Description)
允许在插入嵌入数据(如果有)并在回显响应数据之前修改响应数据。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$result | (array) | 要发送到客户端的响应数据。 |
$this | (WP_REST_Server) | 服务器实例。 |
$request | (WP_REST_Request) | 用于生成响应的请求。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.8.1 | wp-includes/rest-api/class-wp-rest-server.php:416 | 1 | 0 |
上一篇: rest_pre_dispatch
下一篇: rest_pre_get_setting
总计 0 评论