Automattic\Jetpack
Device_Detection::is_desktop()
Detects desktop devices.
Method of the class: Device_Detection{}
No Hooks.
Return
true|false
.
Usage
$result = Device_Detection::is_desktop( $ua );
- $ua(string)
- User-Agent string.
Default: ''
Device_Detection::is_desktop() Device Detection::is desktop code WPSCache 1.12.4
public static function is_desktop( $ua = '' ) { $device_info = self::get_info( $ua ); return true === $device_info['is_desktop']; }