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



rest_{$this->post_type}_query ›

Since4.7.0
已弃用n/a
apply_filters( "rest_{$this->post_type}_query", $args, $request )
参数: (2)
  • (array) $args Key value array of query var to query value.
    Required: Yes
  • (WP_REST_Request) $request The request used.
    Required: Yes
链接:
    定义在:
    文档:

    Filters the query arguments for a request.

    Enables adding extra arguments or setting defaults for a post collection request.





    源码

    $args       = apply_filters( "rest_{$this->post_type}_query", $args, $request );