GitHunt
MI

mistweaverco/wp-mobile-detect-lib

A plugin for Wordpress that makes the awesome Mobile_Detect.php available globally.

WP Mobile Detect Lib

A plugin for Wordpress that makes the awesome
Mobile_Detect.php 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.

Usage Example

<?php
// Content of /var/www/wp-content/themes/best-theme/header.php
$md = getMobileDetectLib();
if ($md->isMobile())
        echo "IS MOBILE";
else
        echo "IS DESKTOP";
?>

Methods / Functions

Because this just a wrapper for the awesome Mobile_Detect.php,
You need to check their documentation on what
methods/functions are available to you.

Languages

PHP100.0%

Contributors

Created February 11, 2018
Updated September 20, 2020
mistweaverco/wp-mobile-detect-lib | GitHunt