Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How can i check whether a plugin is enabled or not?

AoleeAolee Hobbyist & Coder ✭✭
edited February 2012 in Vanilla 2.0 - 2.8

Hi guys,

is there an existing method to check whether there's a plugin in the plugins folder and also to check whether the plugin is enabled or not?

Thanks

Answers

  • Options
    AoleeAolee Hobbyist & Coder ✭✭

    nevermind i found the method, just to share


    Gdn::PluginManager()->CheckPlugin('WhosOnline'); //will return true or false if enabled or not

  • Options
    AoleeAolee Hobbyist & Coder ✭✭

    Plus this is handy

    Gdn::PluginManager()->GetPluginInfo('WhosOnline');//gets the info of plugin e.g version

Sign In or Register to comment.