• MoBlaise

    (@moblaise)


    does anyone have an idea how to disable some plugins from running if the user is using mobile version of the site on mapped domain say m.somesite.com?

Viewing 2 replies - 1 through 2 (of 2 total)
  • luckdragon

    (@luckdragon)

    assuming that you have some way to detect if they are mobile:

    put this in your functions.php for your mobile theme.

    $mobile = detect_mobile();
    if ($mobile) {
      deactivate_plugins( '/plugin-folder/plugin-name.php' );
    }

    Thread Starter MoBlaise

    (@moblaise)

    nope. I get: Call to undefined function detect_mobile()

    🙁

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘disabling some plugin on mobile site’ is closed to new replies.