wpseek.com
A WordPress-centric search engine for devs and theme authors



set_query_var › WordPress Function

Since2.2.0
Deprecatedn/a
set_query_var ( $query_var, $value )
Parameters: (2)
  • (string) $query_var Query variable key.
    Required: Yes
  • (mixed) $value Query variable value.
    Required: Yes
Defined at:
Codex:

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



Source

function set_query_var( $query_var, $value ) {
	global $wp_query;
	$wp_query->set( $query_var, $value );
}