[wp-hackers] any way to clean after theme when it gets deleted?

Andrew Nacin wp at andrewnacin.com
Fri Jul 30 13:45:12 UTC 2010


On Fri, Jul 30, 2010 at 9:25 AM, Ashish Saini
<ashishsainiashfame at gmail.com>wrote:

> You didn't get my point. I said you should provide an uninstaller function
> that wipes out data and it shouldn't be automated upon deactivation.
>

Not sure you got his point -- I believe Davit is referring to the
implementation of an uninstall hook for themes. He's pretty clear he'd want
that triggered on deletion, not deactivation. Basically, how it works for
plugins.

I think implementing themes uninstall hooks would be a logical future step.
We could start by removing items created using the theme_mod functions,
which I don't think most themes use, but we use it for storing metadata for
custom backgrounds and headers.


More information about the wp-hackers mailing list