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

Set the value of a query variable.


Description Description


Parameters Parameters

$key

(string) (Required) Query variable name.

$value

(mixed) (Required) Query variable value.


Top ↑

Source Source

File: wp-includes/class-wp.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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