On my Skoda it was a part of the recoding required when the towbar was fitted. But this was done by the towbar installer.Some sockets have a switch in the side through which the fog lights are fed. Insert the plug and the vehicle fog lights go off.
Having said that, on our VW there is no switch but the vehicle fog lights still do not work when hitched up. Could be an instruction within the ECU that has been missed when the update for towing was done?