Automattic\Jetpack\Device_Detection
User_Agent_Info::is_tablet()
Detects if the user is using a tablet. props Corey Gilmore, BGR.com
Method of the class: User_Agent_Info{}
No Hooks.
Return
true|false
.
Usage
$User_Agent_Info = new User_Agent_Info(); $User_Agent_Info->is_tablet();
User_Agent_Info::is_tablet() User Agent Info::is tablet code WPSCache 1.12.4
public function is_tablet() { return ( 0 // Never true, but makes it easier to manage our list of tablet conditions. || self::is_ipad() || self::is_android_tablet() || self::is_blackberry_tablet() || self::is_kindle_fire() || self::is_MaemoTablet() || self::is_TouchPad() ); }