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.


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

	return $prepared_args;
Array of arguments for WP_User_Query.
The current request.

Where the hook is called

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.