admin管理员组

文章数量:1122846

I want to do some clean-up when my theme is changed out: unregistering cron jobs and other theme-specific things. I've been trying to look for an event that fires when my theme is being swapped out (but is still in scope) - I haven't been able to find any.
There's after_switch_theme, but that fires when a new theme is active.

Is there an appropriate event for this? Or how should we ideally handle cleaning up after our themes are no longer active?

本文标签: Event when theme swapped