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.
How can i check whether a plugin is enabled or not?
Aolee
✭✭
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
0
Answers
nevermind i found the method, just to share
Gdn::PluginManager()->CheckPlugin('WhosOnline'); //will return true or false if enabled or not
Plus this is handy
Gdn::PluginManager()->GetPluginInfo('WhosOnline');//gets the info of plugin e.g version