We describe the impact of heating and ionization on emission from the target of Kα and Kβ radiation induced by the propagation of hot electrons generated by laser-matter interaction. We consider copper as a test case and, starting from basic principles, we calculate the changes in emission wavelength, ionization cross section, and fluorescence yield as Cu is progressively ionized. We have finally considered the more realistic case when hot electrons have a distribution of energies with average energies of 50 and 500 keV (representative respectively of "shock ignition" and of "fast ignition" experiments) and in which the ions are distributed according to ionization equilibrium. In addition, by confronting our theoretical calculations with existing data, we demonstrate that this study offers a generic theoretical background for temperature diagnostics in laser-plasma interactions.