[wp-hackers] [help] sink plugin hooks for $this references inWordPress 2.0 ?

Owen Winkler ringmaster at midnightcircus.com
Fri Jan 13 21:43:21 GMT 2006


David Chait wrote:
> except that there's this weird 'activate_******' automatic hook for when a 
> plugin is activated (and one for deactivation too).
> 
> but the >format< for naming that hook properly isn't clear in the slightest. 
> sample code would be useful here.  I looked quickly, didn't see anything 
> referencing it that'd help.

Apparently, you're not supposed to use add_action() for that one at all:

http://wphooks.flatearth.org/hooks/activate_plugin-filename/

Owen




More information about the wp-hackers mailing list