I’m going to test the user agent to load a mobile template instead of the desktop theme.
There are many mobile detection scripts out there.
wp_is_mobile()function work well?
- What is your experience in comparison with other classes like e.g.
Yes it works well. It’s a very simple function but never found a mobile device not recognized by it. It recognize the 90%+ of mobile devices. Main difference from mobiledetect.net is that doesn’t differe from phone and tablets.
See the code