Catalysis of the hydrolysis of a beta-(1,4) bond in the backbone of a xyloglucan and transfers the xyloglucanyl segment on to O-4 of the non-reducing terminal glucose residue of a xyloglucan or an oligosaccharide of xyloglucan.