How can i check whether a plugin is enabled or not?
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
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
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