[theme-reviewers] Failure of review for my theme (Ahimsa 4.0)
// ravi
ravi-lists at g8o.net
Mon Mar 19 13:22:11 UTC 2012
On Mar 19, 2012, at 4:10 AM, Konstantin Obenland wrote:
>> I am curious: is there a hook that a theme can use for when it is deleted, so that I can clean up all my DB crud should some aesthetic ignoramus :-) decide to remove my theme?
>
> Unfortunately, there is no delete_theme hook (see: http://core.trac.wordpress.org/ticket/16401), but you could use 'switch_theme’.
>
I did consider ‘switch_theme’ but clearing DB options on theme switch would cause loss of settings should aforementioned ignoramus see the light and switch back to my theme :-), no?
—ravi
More information about the theme-reviewers
mailing list