This schedule is added by another plugin
-
Hi, guys –
Ever so often, an error appears on my WordPress dashboard that Woocommerce thumbnail generation has commenced. Sometimes I am able to disable and sometimes not.
I installed WP Crontrol to check the cron jobs and I am seeing ‘wp_1_wc_regenerate_images_cron_interval’ under Cron Schedules. However, when I hover over it, I get this message:
This schedule is added by another plugin and cannot be deleted
I have no idea how to trace the source plugin and there’s no corresponding item under Cron Events. After some research, I found these two snippets. The first breaks my site:
delete_action('wp_1_wc_regenerate_images_cron_interval', 'cron_job_delete'); // clean the scheduler function cron_job_delete() { wp_clear_scheduled_hook('wp_1_wc_regenerate_images_cron_interval'); }
and I am not sure if the second does anything:
add_action("init", "clear_crons_left"); function clear_crons_left() { wp_clear_scheduled_hook("cron_name"); }
Any help in disabling this cron job would be appreciated. Thanks in advance.
- The topic ‘This schedule is added by another plugin’ is closed to new replies.