WordPress at a glance
function is not described

WP_User_Query::set() public WP 3.5.0

Set query variable.

{} It's a method of the class: WP_User_Query{}

No Hooks.

Return

null. Nothing.

Usage

$WP_User_Query = new WP_User_Query();
$WP_User_Query->set( $query_var, $value );
$query_var(string) (required)
Query variable key.
$value(mixed) (required)
Query variable value.

Changelog

Since 3.5.0 Introduced.

Code of WP_User_Query::set() WP 5.7.2

<?php
public function set( $query_var, $value ) {
	$this->query_vars[ $query_var ] = $value;
}