Mobile Detect

plugin banner

Mobile detect plugins fine-tunes the default wp_is_mobile function by excluding tablets, such as iPad, from being detected as mobile!

Author:Pothi Kalimuthu (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:6.5.2
Plugin version:1.5.1
Added to WordPress repository:10-12-2017
Last updated:10-04-2024
Rating, %:100
Rated by:6
Plugin URI:https://www.tinywp.in/wp_is_mobile-exclude-ip...
Total downloads:32 358
Active installs:3 000+
plugin download
Click to start download

Mobile detect plugin uses the open source MobileDetect PHP library to fine-tune the built-in WordPress function wp_is_mobile() in such a way that tablets are excluded from being detected as mobile!

If you don’t understand the above one-liner, here is some explanation…

If we serve different (cached) content for mobiles and desktops, iPads (and other tablets) are usually served with mobile version of the site. That means, iPad users see only the mobile version of the site. If you are in doubt, check your site now! There is nothing wrong with your iPad (or any other tablet). It is due to how WordPress treats iPads and other tablets. Currently, in WordPress, iPads (and other tablets) are considered as mobile! One day (in the future), tablets may be considered as desktops by WordPress internals. Until then, by using / activating this plugin, tablets are served with desktop version of the site.

If your site doesn’t serve different content for mobiles and desktops, please ignore this plugin. This plugin does nothing in that case.

About Mobile Detect PHP Library:

  • Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
  • PHP Mobile Detect is an open-source script released under MIT License.
  • Mobile Detect PHP Developer: Șerban Ghiță, Nick Ilyin.
  • Original author: Victor Stanciu.
  • Icon (and banner) created by: Dragoș Gavrilă.

FAQ
ChangeLog