Support » Plugin: WP Mobile Detect » How to check if this plugin exists?

  • Resolved evo252

    (@evo252)


    Hi,

    I’d like to use a conditional statement before using PHP function of this plugin, because when I have to deactivate alll my plugins for testing purpose it’s not loading the pages.

    Is there a way to use some function like “if [custom option of this plugin] exists -> do that” ?

    Thank you.

    http://wordpress.org/extend/plugins/wp-mobile-detect/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jesse Friedman

    (@professor44)

    This is a technique you can use for any plugin

    <?php
    if (function_exists(‘wpmd_notphone’)) {
    EXISTS
    } else {
    DOESN’T EXIST
    }
    ?>

    evo252

    (@evo252)

    That’s it! Thank you very much 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to check if this plugin exists?’ is closed to new replies.