I'd say the thing works more or less like this. Let's call EF the Fermi level, and EG the energy an electron must possesses to escape the metal. Then:
1) At 0 K, the electrons possesses at most EF energy. Then, to stimulate photoelectric emission, photons with EG - EF will be needed. With the usual formula, we can calculate the frequency of such photons;
2) At T > 0 K, there will be a certain amount (even little) of electrons with energy greater than EF. Then even photons with less energy than EG - EF will be able to extract them: although, they are few, so this current will have low intensity;
3) At T >> 0 K, there will even be electrons possessing an energy of EG. These electrons will be able to escape themselves the metal, without relying on photons. And that would be the thermionic emission.
I found here and there on the net some articles about experiments demonstrating how, with the same intensity of yellow light, magnesium's photoelectric emission increases with temperature, while this effect was less noticeable with light of higher frequency. I'd say this must be due to the fact that increasing the temperature, the number of electrons possessing an energy, say, EF2, greater than EF, so that EG - EF2 is equal to the energy of a yellow light photon, increases.