[wp-hackers] Plugin dependency checking

scribu scribu at gmail.com
Fri Jun 12 01:19:20 GMT 2009


On Fri, Jun 12, 2009 at 4:13 AM, Shane A. Froebel <shane at bugssite.org>wrote:

> I rather that there be a API on the plugin itself so other plugins could
> use it to see if it's there and working.... IMO.
>

You don't need an API for that. Just do a
function_exists('function_defined_in_plugin') or a class_exists().

Like I've said previously, the issue is providing a good user experience in
the case that the dependant plugin is not installed + activated + loaded.

-- 
http://scribu.net


More information about the wp-hackers mailing list