public function getTerm()
	{
		global $wp_query;

		if (isset($wp_query->tax_query) && !empty($wp_query->tax_query))
		{
			$first = reset($wp_query->tax_query->queries);
			return is_array($first) ? reset($first['terms']) : false;
		}

		return false;
	}
public function getTerm()
	{
		global $wp_query;

		if (isset($wp_query->tax_query) && !empty($wp_query->tax_query))
		{
			$first = reset($wp_query->tax_query->queries);
			return is_array($first) ? reset($first['terms']) : false;
		}

		return false;
	}
public function getTerm ( ) { global $ wp_query ; if ( isset ( $ wp_query -> tax_query ) && ! empty ( $ wp_query -> tax_query ) ) { $ first = reset ( $ wp_query -> tax_query -> queries ) ; return is_array ( $ first ) ? reset ( $ first [ 'terms' ] ) : false ; } return false ; }
Return the taxonomy term if available

@return bool|mixed
Return the taxonomy term if available