[wp-hackers] A third action for plugins

Paul Menard paul at codehooligans.com
Sat Nov 24 15:47:58 GMT 2007


Something similar to an earlier post  on removing extra columns. I've  
noticed the wp_options table  has become quite bloated over the years.  
My site was originally setup on WP 1.5.1 and upgraded ever since. I've  
installed many plugins and also uninstalled many plugins over time.

I've noticed that old plugins leave trails in the wp_options table. At  
one time many plugins would automatically remove any entries in  
wp_option (as well as any specific new tables) upon deactivation. For  
some reason plugin developers have stopped this removal. This was  
great for tossing the plugin but if I just needed to deactivate the  
plugin to perform an upgrade then I would not really want to loose all  
my plugin settings.

So my though was to add a third action (1-Activate, 2-Deactivate) to  
actually remove the plugin's data. This action would be tied to a  
plugin function similar to the deactivate or install action.

Thoughts?

Paul


More information about the wp-hackers mailing list