wphooks.info - wp_is_mobile

wp_is_mobile

(trunk - 5.0-alpha-42716)

The hook occurs in the following file:

wp-includes/vars.php:
148
149
150
151
152
153
154
155
156
157
158
159
		$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 );
}