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



rest_user_collection_params ›

Since4.7.0
已弃用n/a
apply_filters( 'rest_user_collection_params', $query_params )
参数:
  • (array) $query_params JSON Schema-formatted collection parameters.
    Required: Yes
定义在:
文档:

Filter collection parameters for the users controller.

This filter registers the collection parameter, but does not map the collection parameter to an internal WP_User_Query parameter. Use the rest_user_query filter to set WP_User_Query arguments.





源码

return apply_filters( 'rest_user_collection_params', $query_params );