Skip to content

Commit

Permalink
Remove the cron job after sucessfully queing everything.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Sep 11, 2023
1 parent b567296 commit 57073be
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,7 @@ function queue_attendee_survey() {
$next_time = strtotime( '+2 weeks' . wp_timezone_string() );
wp_schedule_single_event( $next_time, 'wc_attendee_disable_survey' );
}

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

0 comments on commit 57073be

Please sign in to comment.