Effect of pressure on the magnetic properties of Kondo materials