Forums

deleting a cron wp_scheduled_event on theme deactivation (1 post)

  1. jaredh123
    Member
    Posted 2 years ago #

    My question is this: I'm writing a theme that adds a scheduled event upon theme activation, but I can't find a hook to use to un-schedule that event when the user switches to another theme. i tried "switch_themes" but that runs after the new theme is activated, not as the old theme is deactivating, as far as I can tell. any thoughts? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic