Magnetic field evolution of hot exoplanets