get_query_var
get_query_var ( $var, $default = '' )
Parameters:- (string) var The variable key to retrieve.
- (mixed) default Optional. Value to return if the query variable is not set. Default empty.
Returns:- (mixed) Contents of the query variable.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the value of a query variable in the WP_Query class.