Acyltransferase involved in the biosynthesis of lignin (PubMed:15161961, PubMed:26858288, PubMed:27805809). Accepts caffeoyl-CoA and p-coumaroyl-CoA as substrates and transfers the acyl group on both shikimate and quinate acceptors (PubMed:15161961). 4-coumaroyl-CoA + shikimate = CoA + trans-4-coumaroylshikimate Belongs to the plant acyltransferase family.