wp_cache_mobile_group()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wp_cache_mobile_group( $user_agent );
$user_agent (required)
-

Code of wp_cache_mobile_group() WPSCache 1.8

function wp_cache_mobile_group( $user_agent ) {
	global $wp_cache_mobile_groups;
	foreach ( (array) $wp_cache_mobile_groups as $name => $group ) {
		foreach ( (array) $group as $browser ) {
			$browser = trim( strtolower( $browser ) );
			if ( $browser != '' && strstr( $user_agent, $browser ) ) {
				return $browser;
			}
		}
	}
	return 'mobile';
}