isMobile() Shortcode for WordPress

plugin banner

This plugin works with the open source Mobile Detect Library. You can get further information on its website.

Author:jairoochoa (profile at wordpress.org)
WordPress version required:4.5
WordPress version tested:6.3.1
Plugin version:1.1.1
Added to WordPress repository:05-11-2018
Last updated:17-09-2023
Rating, %:100
Rated by:1
Plugin URI:https://www.dixitalmedia.com/#que-hacemos
Total downloads:1 833
Active installs:100+
plugin download
Click to start download

This plugin works with the open source Mobile Detect Library. You can get further information on its website.

[ismobile device=’iphone’ debug=true ] Your content [/ismobile]

Parameters

device: Filters the device where you want the content to be shown. It could be more than one device, simply separate them with comma.
debug: Shows Mobile Detect Library installed version. Also shows two arrays. The first one contains the devices which the library detects and the second one contains the devices where you want to show the content.

Values

android: Shows content in Android devices.
chrome: Shows content on Chrome browser (Only works on mobile devices).
desktop: Shows content on a computer. Opposite to mobile option.
ios: Shows content in iOS devices.
ipad: Shows content on a iPad.
iphone: Shows content on a iPhone.
mobile: Shows content on a mobile device (includes tablets and cell phones). Opposite to desktop option.
phone: Shows content on a cell phone.
safari: Shows content on Safari browser (Only works on mobile devices).
samsung: Shows content on Samsung devices.
tablet: Shows content on a tablet.


ChangeLog