[Bb-trac] Re: [bbPress] #630: A check to see if a plugin is
activated or not
bbPress
bb-trac at lists.bbpress.org
Fri Apr 6 15:26:27 GMT 2007
#630: A check to see if a plugin is activated or not
-------------------------------------+--------------------------------------
Reporter: Null | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0
Component: Back-end | Version: 0.8.1
Severity: normal | Resolution:
Keywords: plugin activation check |
-------------------------------------+--------------------------------------
Comment (by sambauers):
This works anywhere in a plugin, you just need to know the filename of the
plugin you are checking:
{{{
$active_plugins = bb_get_option('active_plugins');
if (in_array('ldap-authentication.php', $active_plugins)) {
echo 'OMG, LDAP authentication is active!';
}
}}}
A very simple function could be built around this code that could maybe
even check against a plugins name, but that would be an expensive process.
--
Ticket URL: <http://trac.bbpress.org/ticket/630#comment:3>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list