WordPress at a glance
function is not described

set_query_var() WP 2.2.0

Set query variable.

  • Global. WP_Query. $wp_query Global WP_Query instance.

No Hooks.

Return

Nothing (null).

Usage

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

Code of set query var: wp-includes/query.php VER 5.0.3

<?php
function set_query_var( $var, $value ) {
	global $wp_query;
	$wp_query->set( $var, $value );
}