Summery Summery
Set query variable.
Syntax Syntax
Parameters Parameters
- $var
-
(Required) Query variable key.
- $value
-
(Required) Query variable value.
Source Source
File: wp-includes/query.php
function set_query_var( $var, $value ) { global $wp_query; $wp_query->set( $var, $value ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |