WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WPtap Mobile Detector] View full website option

[Plugin: WPtap Mobile Detector] View full website option

Viewing 2 replies - 1 through 2 (of 2 total)
  • thadfiebich
    Member

    @thadfiebich

    This might not be too bad. Using shortcode to create a link with a passing variable in the url that would bypass the redirect. hmmm.

    aoikle
    Member

    @aoikle

    I tried adding this to mobiledetector.php. Seems to work for me instead of adding a JS lib. You can name the request/cookie name/value anything you want.

    if ( isset($_COOKIE[‘disable-mobile-redirect’]) || isset($_REQUEST[‘disable-mobile-redirect’]) ) {
    setcookie(‘disable-mobile-redirect’, ‘true’);
    } else {

    — original code —

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WPtap Mobile Detector] View full website option’ is closed to new replies.