Altered or Deleted Events

Home Forums Calendar Products Event Aggregator Altered or Deleted Events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1081864
    Tim
    Participant

    Hello, 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,
    Tim

    #1082176
    Cliff
    Member

    Hi 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.

    #1082228
    Tim
    Participant

    Thank 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.

    #1082234
    Cliff
    Member

    Best 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!

    #1087776
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Altered or Deleted Events’ is closed to new replies.