set_query_var


set_query_var ( $query_var, $value )

Parameters:
  • (string) query_var Query variable key.
  • (mixed) value Query variable value.
Defined at:

Description

Sets the value of a query variable in the WP_Query class.

Related Functions

get_query_var, add_query_arg, remove_query_arg, wp_reset_query, get_query_template

Top Google Results

User discussions

wpseek mobile