Set query variable.

Signature

set_query_var( $var, $value )
var
 (string) Query variable key.
value
 (mixed)

Return

(null)

Source

function set_query_var($var, $value) {
	global $wp_query;

	return $wp_query->set($var, $value);
}
WP Trac GitHub

Link here