We present new UBV(RI)_C photometry of 22 stars that host transiting planets, 19 of which were discovered by the WASP survey. We use these data together with 2MASS JHK_S photometry to estimate the effective temperature of these stars using the infrared flux method. We find that the effective temperature estimates for stars discovered by the WASP survey based on the analysis of spectra are reliable to better than their quoted uncertainties.