We introduce the concept of a $\{\unicode[STIX]{x1D70E},\unicode[STIX]{x1D70F}\}$-Rota–Baxter operator, as a twisted version of a Rota–Baxter operator of weight zero. We show how to obtain a certain $\{\unicode[STIX]{x1D70E},\unicode[STIX]{x1D70F}\}$-Rota–Baxter operator from a solution of the associative (Bi)Hom-Yang–Baxter equation, and, in a compatible way, a Hom-pre-Lie algebra from an infinitesimal Hom-bialgebra.