wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_user_collection_params › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_user_collection_params', $query_params )
Parameters:
  • (array) $query_params JSON Schema-formatted collection parameters.
    Required: Yes
Defined at:
Codex:

Filters REST API 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.





Source

return apply_filters( 'rest_user_collection_params', $query_params );