Catalysis of the reaction: 4-coumarate + UDP-D-glucose = 4-O-beta-D-glucosyl-4-hydroxycinnamate + UDP. Also acts on ferulate, caffeate and sinapate, forming a mixture of 4-glucosides and glucose esters.
UDP-glucose-hydroxycinnamate glucosyltransferase activity