Basically, the magnetic field of one magnet went inside one end of the wormhole and came out from the other end. You can see its visualization here.
The left image shows a device which was created by the scientists which separated the two poles of the magnet. So, this device is basically working as a wormhole for the magnetic field. We can see this device with our eyes but if you look at the magnetic fields in the right picture, you will see that on one side, there is a pole of the magnet and on the other side, the other pole is separated and at a distance.
Like in space, a wormhole works by bending the space-time curvature, here, this wormhole, bent the magnetic field. To make this magnetic wormhole a high-temperature superconducting material was used known as the Yttrium Barium Copper Oxide and it was kept in a liquid nitrogen bath to conduct this experiment.