In the function
functions.php of WP Mobile Detector there is the detection of a mobile device (smartphone). Now I want that my Samsung Galaxy Tab (GT-P5100) is not treated as a smart phone. It should not redirect the user and the user should get the desktop version.
The user agent according to whatsmyuseragent.com is:
Mozilla/5.0 (Linux; U; Android 4.0.3;de-de;GT-P5100 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30
How can I add an exception for this device?
Can I use this code?
case (preg_match('/GT-P5100/i',$user_agent)); //Android $mobile_browser = false; $mobile_browser_type = "0"; //Tablet break;
Or is there a better way?