Summery Summery
Set the value of a query variable.
Syntax Syntax
Parameters Parameters
- $key
-
(Required) Query variable name.
- $value
-
(Required) Query variable value.
Source Source
File: wp-includes/class-wp.php
public function set_query_var( $key, $value ) { $this->query_vars[ $key ] = $value; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |