WordPress at a glance
filter is not described

rest_user_query filter-hook . WP 4.7.0

Filters WP_User_Query arguments when querying users via the REST API.

Usage

add_filter( 'rest_user_query', 'filter_function_name_5209', 10, 2 );
function filter_function_name_5209( $prepared_args, $request ){
	// filter...

	return $prepared_args;
}
$prepared_args(array)
Array of arguments for WP_User_Query.
$request(WP_REST_Request)
The current request.

Where the hook is called

WP_REST_Users_Controller::get_items()
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 286
$prepared_args = apply_filters( 'rest_user_query', $prepared_args, $request );

Where the hook is used (in WP core)

Does not used.