Central compact objects and the hidden magnetic field scenario