[wp-hackers] plugin loading order (rfc)

Peter Westwood peter.westwood at ftwr.co.uk
Sun Mar 11 16:30:49 GMT 2007


Sabin Iacob wrote:
> Peter Westwood wrote:
>> Sabin Iacob wrote:
>>> While working on a plugin, I hit an interesting issue: there is no 
>>> other way to alter the order in which plugins are loaded than 
>>> changing the file name.
>> If you need to check for existance of other pluggins do in on the 
>> "init" hook - i.e. once everyone is loaded.
> 
> hmm, you have a point; however, there are other benefits to adding some 
> checks at activation time (improving user experience is one of them: you 
> would increase chances that if a plugin can be activated it will 
> actually work).

If you want to do some checks at activation time and block activation 
then you can do this with a plugin activation hook and dieing inside the 
activation hook.

We could provide a way for a plugin to provide an error message in this 
case as an enhancement.

westi
-- 
Peter Westwood
http://blog.ftwr.co.uk


More information about the wp-hackers mailing list