[wp-hackers] plugin hook action

Oliver Schlöbe office at wpseek.com
Fri Jun 4 17:13:04 UTC 2010

I just used a simple workaround for this in my Changelogger plugin where 
I needed the exact same thing.

add_filter('pre_update_option_active_plugins', array(&$this, 


Basically just compare the active_plugins option before and after an 
update. If values are different, a plugin has been deactivated or activated.

Oliver Schlöbe


-- Code so clean you could eat off it.

On 04.06.2010 18:58, Ana Aires wrote:
> Hi guys,
> do you know if there is any hook action to call after a plugin activation?
> activate_plugin does not work and register_activation_hook is not what I
> want, because I would need to trigger some behavior when any plugin is
> installed so I can't
> pass the plugin file name to this last function.
> I suppose this should be simple, but I honestly don't find any solution.
> Thanks in advance!

More information about the wp-hackers mailing list