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



rest_user_query › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_user_query', $prepared_args, $request )
Parameters: (2)
  • (array) $prepared_args Array of arguments for WP_User_Query.
    Required: Yes
  • (WP_REST_Request) $request The REST API request.
    Required: Yes
Defined at:
Codex:

Filters WP_User_Query arguments when querying users via the REST API.





Source

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