[wp-hackers] Plugin Activation Check

Scott Merrill skippy at skippy.net
Thu Jul 7 12:30:18 GMT 2005


Bill Smith wrote:
> I have a plugin that is dependent on another plugin. Is there a straight
> forward way to check to see if a plugin is installed and active?

The most basic method is for plugin B to perform:
if (! function_exists('plugin_A_function')) {
   return;
}

-- 
skippy at skippy.net | http://skippy.net/

gpg --keyserver pgp.mit.edu --recv-keys 9CFA4B35
506C F8BB 17AE 8A05 0B49  3544 476A 7DEC 9CFA 4B35


More information about the wp-hackers mailing list