WordPress.org

Ready to get started?Download WordPress

Forums

WP Mobile Detect
[resolved] How to check if this plugin exists? (3 posts)

  1. evo252
    Member
    Posted 1 year ago #

    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/

  2. Jesse Friedman
    Member
    Plugin Author

    Posted 1 year ago #

    This is a technique you can use for any plugin

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

  3. evo252
    Member
    Posted 1 year ago #

    That's it! Thank you very much ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.