set_query_var
set_query_var ( $var, $value )
Parameters:- (string) var Query variable key.
- (mixed) value Query variable value.
Defined at: - Introduced in WordPress: 2.2.0
- Deprecated in WordPress: —
Description
Sets the value of a query variable in the WP_Query class.