[wp-hackers] function_exists - user woes

Brian Meidell brian at mindflow.dk
Fri Jul 30 13:35:54 UTC 2004


So you want a user to write something like this:

if (plugin_activated('plugin_name'') ( the_plugin_author() );

in his or her template file?

/Brian

Carthik Sharma wrote:

> Usually the end user just copies the code that the plugin author gives
> them, so the plugin author could provide code, whether it be the
> function_exists thing, or something else, that the user can plug into
> his pages.
> Why not provide a better way of checking if Plugin X is activated?
> That could be a wordpress function that works like
> if (plugin_activated('plugin_name'') (then do this);
> 
> Carthik.
> 




More information about the hackers mailing list