WordPress at a glance
function is not described

WP_Query::set() WP 1.5.0

Set query variable.

This is a method of the class: WP_Query

No Hooks.

Return

Null. Nothing.

Usage

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

Changelog

Since 1.5.0 Introduced.

Code of WP Query::set: wp-includes/class-wp-query.php WP 5.2.3

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