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



rest_prepare_comment › WordPress过滤钩子

Since4.7.0
已弃用n/a
apply_filters( 'rest_prepare_comment', $response, $comment, $request )
参数: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Comment) $comment The original comment object.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
定义在:
文档:

Filters a comment returned from the REST API.

Allows modification of the comment right before it is returned.





源码

return apply_filters( 'rest_prepare_comment', $response, $comment, $request );