Detect Safari on iOS with a WordPress function