Here is a little plug-in for Wordpress that I created to grab the USER_AGENT header string. It is very simple at best, so don’t expect to move any mountains with it. You can read more about it on The User Agent Identify page.
User Agent Identify is a plug-in for Wordpress. The plug-in doesn’t do anything special, so don’t expect it to. This plug-in simply determines if the visitor’s browser is a mobile based browser (ie. iPhone, Android…) and returns true of false. I created this plug-in because I needed a way to dynamically bypass other plug-ins depending on if the browser was mobile or not. Specifically, I wanted to bypass the SuperSlider-Login plug-in and the wp-Followme plug-in. This plug-in DOES NOT disable any other plugins! After installation of this plug-in all you need to do is make a call to the user_agent_identify() class from within whatever plug-in or page you need. This plug-in will only return true or false.
I have included a few USER_AGENT strings in the plug-in. Feel free to modify it or add to it.
Here is a screenshot of the Options page. As you can see, there aren’t any options at all, just a few lines to show that it’s working properly.
I have no plans on submitting this plug-in to Wordpress, as there are already similar plug-ins available. You can download the plug-in here. Use it at your own risk.

