wphooks.info - wp_is_mobile

wp_is_mobile

*** New in v4.9 ***

The hook occurs in the following file:

wp-includes/vars.php:
139
140
141
142
143
144
145
146
147
148
149
150
		$is_mobile = false;
	}

	/**
	 * Filters whether the request should be treated as coming from a mobile device or not.
	 *
	 * @since 4.9.0
	 *
	 * @param bool $is_mobile Whether the request is from a mobile device or not.
	 */
	return apply_filters( 'wp_is_mobile', $is_mobile );
}