Determine whether a plugin is installed and active.
May be used by theme/plugin writers to customize behavior based on the existence of certain plugins. Some examples of how to use this function:
Check if ExhibitBuilder is installed and activated.
if (plugin_is_active('ExhibitBuilder')):
Check if installed version of ExhibitBuilder is at least version 1.0 orhigher.
if (plugin_is_active('ExhibitBuilder', '1.0')):
Check if installed version of ExhibitBuilder is anything less than 2.0.
if (plugin_is_active('ExhibitBuilder', '2.0', '<')):
Parameters: |
|
---|