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
版权声明:本文标题:Event: when theme swapped 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736295698a1929625.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论