A WordPress-centric search engine for devs and theme authors



set_query_var ›

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

Set query variable.



Source

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