WP_User_Query::set()publicWP 3.5.0

Sets query variable.

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.

WP_User_Query::set() code WP 6.1.1

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