Uses
Uses | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::set() | Set query variable. |
Set query variable.
(string) (Required) Query variable key.
(mixed) (Required) Query variable value.
File: wp-includes/query.php
function set_query_var( $var, $value ) { global $wp_query; $wp_query->set( $var, $value ); }
Version | Description |
---|---|
2.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/set_query_var