Documentation Functions is-mobile.php jetpack_is_mobile()

jetpack_is_mobile

Is the visitor on a mobile device?

Parameters

Name Type Description

$kind

string

Optional. Category of mobile device to check for. Either: any*, dumb, smart.

$return_matched_agent.

bool

Optional. If true, return the user agent.

Return Value

bool or string: If bool, returns if the $kind matched. If string, return the user agent.