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

In this article

Sets the value of a query variable.

Parameters

$keystringrequired
Query variable name.
$valuemixedrequired
Query variable value.

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.