Cron jobs for deactivated plugins

Hi I am using a plugin to view the cron jobs that are run by wordpress. I am noticing that there are jobs related to plugins I have deactivated and even deleted. Why is this so and how can I remove them?

Related posts

Leave a Reply

2 comments

  1. This might be because the plugins you were using didnt deregister the crons it setup. To remove the crons use the following code in your functions file:

    add_action("init", "clear_crons_left");
    function clear_crons_left() {
        wp_clear_scheduled_hook("cron_name");
    }
    

    Once thats run once you can safely remove it