Can someone fly with wpw?

Depends. The level of testing required when a pilot has Wolff-Parkinson-White syndrome depends on the type of flying intended - military, airline transport, commercial, private, sport, recreational, etc. Having WPW does not exclude you from flying.
WPW. The danger with WPW is of a very rapid rhythm. If the patient has no history of this, then flying in a pressurized aircraft should present no excess risk. For a patient having arrhythmia s , the risk is more and they should probably not fly unless their problem is ablated and resolved.
Wpw. Usually yes, but for patients with difficult to control SVT attacks I would recommend consulting your doc especially for long flights, if one is having Svt attacks, the treatment is Catheter ablation ...