function process_recurrent_trashing($post_id) { $event = new Eab_EventModel(get_post($post_id)); if (!$event->is_recurring()) { return false; } $event->trash_recurring_instances(); }