[Suggestion] Add filter before event is saved

Home Forums Calendar Products Event Aggregator [Suggestion] Add filter before event is saved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1013408
    Markus
    Participant

    Hi,

    I’m trying to import events from meetup.com, but this doesn’t work as I wanted. So I thought about writing a filter, which improves the events data, but imho this is not possible as there are no filters available I can use (or are their).

    My suggestion would be in Importer.php#saveEvents directly after foreach ( $events as $event )

    for instance:

    foreach ( $events as $event ) {
    
         apply_filters( 'tribe_events_ical_importer_before_saving_event', $event );
    ...
    

    This would allow me to reparse some of the data to a better format.

    #1013409
    Markus
    Participant
    foreach ( $events as $event ) {
    
        $event = apply_filters( 'tribe_events_ical_importer_before_saving_event', $event );
    ...

    Even if this is marked as solved, it isn’t.

    #1013620
    Brian
    Member

    Hi,

    Sorry for the issues with the support tools. Sometimes when a reply is added before we get to it, it gets marked resolved on rare instances.

    Anyway, that is a suggestion that I think could help out the plugin.

    It is to late to include that as part of 4.0 as the coding is in testing now.

    I can write a ticket for us to see about including that in 4.1 though, that is about as much as I can do right now for this.

    Although not recommended to edit the plugins in this case you could add the filter yourself for now to get it to work how you would like.

    Let me know if you have any follow up questions.

    Thanks

    #1018816
    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘[Suggestion] Add filter before event is saved’ is closed to new replies.