The following snippet will let you detect iPhone users in WordPress.

Snippet Source/Credit: WP-Snippet.com