isMobile() Shortcode for WordPress

Descrição

[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.

Instalação

This section describes how to install the plugin and get it working.

  1. Upload the entire plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to Plugins -> isMobile() to read plugin’s help page.

Minimum Requirements

  • PHP version 5.6 or greater (PHP 7.2 or greater is recommended)

Avaliações

22 de outubro de 2020
Works a treat to show information based on android or ios. thank you.
Leia 1 avaliação

Colaboradores e desenvolvedores

“isMobile() Shortcode for WordPress” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

“isMobile() Shortcode for WordPress” foi traduzido para 2 localizações. Agradecemos aos tradutores por suas contribuições.

Traduzir “isMobile() Shortcode for WordPress” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

1.0

  • Initial Release

1.0.1

  • Mobile Detect Library updated to Version 2.8.34