Automattic\Jetpack

Device_Detection::is_phone()public staticWPSCache 1.0

Detects phone devices.

{} It's a method of the class: Device_Detection{}

No Hooks.

Return

true|false.

Usage

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

Code of Device_Detection::is_phone() WPSCache 1.9.1

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