[wp-hackers] Plugin Activation Check

Andy Skelton skeltoac at hotmail.com
Thu Jul 7 20:48:41 GMT 2005

>From: Mark Jaquith <mark.wordpress at txfx.net>
>Be aware, though, that it's best not to run code as the plugin is
>included.  It's much better to create functions or classes and to include a 
>"hook" to the "init" or "plugins_loaded" actions.  That way, all plugins 
>that are active will have declared all their functions and you won't have 
>to worry about loading order.

Mark, this is the umpteenth time I've seen a thread like this but the first 
time I've read the concise and valuable advice you give here. Would you care 
to Wikify it for up-and-coming plugin authors?

/me kicks himself hard


Don’t just search. Find. Check out the new MSN Search! 

More information about the wp-hackers mailing list