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{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код User_Agent_Info::is_tablet() 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()
	);
}