set_query_var

Advertisement

Summery Summery

Set query variable.

Syntax Syntax

set_query_var( string $var, mixed $value )

Parameters Parameters

$var

(Required) Query variable key.

$value

(Required) Query variable value.

Source Source

File: wp-includes/query.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Advertisement

Leave a Reply