get_query_var
get_query_var ( $query_var, $default_value = '' )
Parameters:- (string) query_var The variable key to retrieve.
- (mixed) default_value Optional. Value to return if the query variable is not set. Default empty string.
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.