Automattic\Jetpack

Device_Detection::is_tablet()public staticWPSCache 1.0

Detects tablet devices.

Method of the class: Device_Detection{}

No Hooks.

Return

true|false.

Usage

$result = Device_Detection::is_tablet( $ua );
$ua(string)
User-Agent string.
Default: ''

Device_Detection::is_tablet() code WPSCache 1.9.1

public static function is_tablet( $ua = '' ) {
	$device_info = self::get_info( $ua );
	return true === $device_info['is_tablet'];
}