[wp-hackers] Plugin deactivation

Scott Merrill skippy at skippy.net
Mon Jul 4 00:52:43 GMT 2005


Terrence Wood wrote:
> Is there any way for a plugin to determine when it's deactivated so it 
> can run some cleanup code?
> 
> I am testing a plugin that modifies .htaccess, and would like to remove 
> some rewrite rules if the plugin is deactivated.

Ticket 1052 was filed in early March:
    http://trac.wordpress.org/ticket/1052

I see no reason not to add hooks for plugin_activated 
plugin_deactivated.  The hooks could even take as options the name of 
the plugin being (de-)activated.

-- 
skippy at skippy.net | http://skippy.net/

gpg --keyserver pgp.mit.edu --recv-keys 9CFA4B35
506C F8BB 17AE 8A05 0B49  3544 476A 7DEC 9CFA 4B35


More information about the wp-hackers mailing list