When an electric current is passed through a wire, it is true that a magnetic field is produced around it. However, such magnetic fields are very weak.
The magnetic field produced by an electric iron connecting cable is very weak and is not enough to attract nearby objects. Moreover, metallic wires of cables are shielded with a cover that prevents magnetic field to show its effect outside the cable.