Ejemplo n.º 1
0
 protected function do_deletions()
 {
     $instances_to_delete = $this->current_queue->instances_to_delete();
     foreach ($instances_to_delete as $instance_id => $start_date) {
         // Don't process more than the current batch size allows
         if ($this->batch_complete()) {
             break;
         }
         Tribe__Events__Pro__Recurrence_Meta::delete_unexcluded_event($instance_id, $start_date);
         unset($instances_to_delete[$instance_id]);
         $this->processed++;
     }
     // Update the "to delete" list
     $this->current_queue->instances_to_delete($instances_to_delete);
 }