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



rest_comment_query ›

Since4.7.0
已弃用n/a
apply_filters( 'rest_comment_query', $prepared_args, $request )
参数: (2)
  • (array) $prepared_args Array of arguments for WP_Comment_Query.
    Required: Yes
  • (WP_REST_Request) $request The current request.
    Required: Yes
链接:
    定义在:
    文档:

    Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.





    源码

    $prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );