Codex

Function Reference/get query var

Contents

Description

Retrieve variable in the WP_Query class.

Usage

<?php get_query_var$var ?>

Parameters

$var
(string) (required) The variable key to retrieve.
Default: None

Return Values

(mixed) 

Examples

Notes

  • See WP_Query::get()
  • Uses global: (object) $wp_query

Change Log

Since: 1.5.0

Source File

get_query_var() is located in wp-includes/query.php.

Related