On this page
WP::set_query_var( string $key, mixed $value )
Sets the value of a query variable.
Parameters
$keystring Required-
Query variable name.
$valuemixed Required-
Query variable value.
Source
File: wp-includes/class-wp.php. View all references
public function set_query_var( $key, $value ) {
$this->query_vars[ $key ] = $value;
}
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp/set_query_var