The MU forums have moved to WordPress.org

calling a nonactivated plugin - error (3 posts)

  1. sskhalsa
    Member
    Posted 18 years ago #

    Hey,

    When u install plugins that need to be called in each theme (either sidebar or somewhere else) and the plugin is not activated by the user (because plugins are controlled by user), how do you keep the php call error from happening?

  2. techwench
    Inactive
    Posted 18 years ago #

    You need to enclose the plugin call with this:

    <?php if (function_exists('function_name')) { ?>

    ...code for function...

    <?php } ?>

  3. sskhalsa
    Member
    Posted 18 years ago #

    thanks alot!

About this Topic

  • Started 18 years ago by sskhalsa
  • Latest reply from sskhalsa