Ep7GT, a glycosyltransferase with sugar donor flexibility from Epimedium pseudowushanense, catalyzes the 7-O-glycosylation of baohuoside.