Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mistweaverco/wp-mobile-detect-lib/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP Mobile Detect Lib
A plugin for Wordpress that makes the awesome
[Mobile\Detect.php][mobiledetect-website] available globally.
This plugin was created, because there seems to be no other plugin available
which does this, which is not outdated.
I plan to keep this in sync with the [official upstream][mobiledetect-github].
Usage Example
Methods / Functions
Because this just a wrapper for the awesome MobileDetect.php,
You need to check their [documentation][mobiledetect-examples] on what
methods/functions are available to you.
[mobiledetect-website]: http://mobiledetect.net/
[mobiledetect-github]: https://github.com/serbanghita/Mobile-Detect
[mobiledetect-examples]: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples