Home › Forums › Calendar Products › Event Aggregator › Altered or Deleted Events
- This topic has 4 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 25, 2016 at 12:22 am #1081864
Tim
ParticipantHello, I am using 4.0.6 of the Events cal Pro and 4.0.3 of iCal importer.
Can you please walk me through how to make it so that events that have been changed in outlook or deleted in outlook also get changed or deleted in WP? I saw a few posts and tried but wasn’t able to get it to work. I use a .ics file from MS Exchange / office365.
Thank you,
TimFebruary 25, 2016 at 1:24 pm #1082176Cliff
MemberHi Tim. Thanks for your question.
I think what you’re getting at is updating event information for events that were previously imported via iCal Importer.
If I’m understanding your question correctly, iCal Importer was recently changed to NOT overwrite/update existing events, since users might make local changes and wish for those changes to persist.
You should be able to use the tribe_events_ical_importer_overwrite_existing_events filter to enable this functionality. This hook can be found in /wp-content/plugins/the-events-calendar-importer-ical/src/Tribe/Importer.php if you’d like to look into this further.
I hope this information helps. Please let me know if you need anything else.
February 25, 2016 at 3:21 pm #1082228Tim
ParticipantThank you for your fast replies. Yes that is what I am trying to do but I am fairly new at this, do you have any screen shots or a way for me to navigate to this file? I am not able to locate it. I went to plugins>editor> and selected each of the calendars but the file name is different the-events-calendar-importer-ical/the-events-calendar-ical-importer.php and I didnt see anything about the tribe_events_ical_importer_overwrite_existing_events filter
any additional guidance you can offer would be greatly appreciated.
February 25, 2016 at 3:30 pm #1082234Cliff
MemberBest practice for adding custom code (like to implement a PHP snippet to modify The Events Calendar) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.
// Allow events that have already been imported to be updated if the source event // is changed and if it was pulled in via a saved recurring import (iCal Importer) add_filter( 'tribe_events_ical_importer_overwrite_existing_events', '__return_true' );I hope this information helps!
March 11, 2016 at 8:35 am #1087776Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Altered or Deleted Events’ is closed to new replies.
