Skip to content

Commit

Permalink
WCOS: Remove wp_clear_scheduled_hook as it doesn't work as expected.
Browse files Browse the repository at this point in the history
Although the cron job is deleted after queuing the email, you can see from the init above that visiting other WP pages immediately re-adds the cron job.
  • Loading branch information
renintw committed Sep 27, 2023
1 parent 24d3357 commit 0d3e2e6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,4 @@ function queue_organizer_survey() {
} else {
log( 'Email status change to `pending`.', $email_id );
}

// Remove the cron job that queues everything.
wp_clear_scheduled_hook( 'wc_organizer_debrief_survey_email' );
}

0 comments on commit 0d3e2e6

Please sign in to comment.