WP::set_query_var( string $key, mixed $value )

Set the value of a query variable.


Parameters

$key

(Required) Query variable name.

$value

(Required) Query variable value.


Source

File: wp-includes/class-wp.php

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

Changelog

Changelog
Version Description
WP-2.3.0 Introduced.