Automattic\Jetpack\Device_Detection

User_Agent_Info::is_tablet()publicWPSCache 1.0

Detects if the user is using a tablet. props Corey Gilmore, BGR.com

Метод класса: User_Agent_Info{}

No Hooks.

Return

true|false.

Usage

$User_Agent_Info = new User_Agent_Info();
$User_Agent_Info->is_tablet();

Code of User_Agent_Info::is_tablet() WPSCache 1.9.1

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()
	);
}