Events Made Easy Forums How do I … csv-download of subscriptions – addition al information

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #53436
    Anonymous
    Inactive

    Hi Franky,

    you’ve already told me that you would have to invest a lot of time in order to implement this
    https://wordpress.org/support/topic/download-of-all-events?replies=6
    so I won’t ask for it.

    …but if it would not mean too much work for you, one addition which would help as
    a lot would be to add to the existing csv-downloads (per single event)
    the details of the respective event (description, starting date, ending date, id, recurrence id…
    or at least
    id and possibly the recurrence_id

    Would that be possible?

    Best Regards S

    #53439
    Franky
    Keymaster

    Well, as it turns out it is already possible but I just didn’t document it. You have 2 filters that can be used to change the header and/or footer section (in other words: you can add a first or last line to the csv output): eme_csv_header_filter and eme_csv_footer_filter (1 parameter: $event)

    #53446
    Anonymous
    Inactive

    Great, that you’ve already thought about it!

    May I just ask you to help me with an example that helps me understand how I have to proceed?

    add_filter(‘………….)
    ……
    }

    S

    #53450
    Franky
    Keymaster
    function my_eme_csv_header($event) {
       $my_sep=get_option('eme_csv_separator');
       $my_line=$event['event_id'].$my_sep.$event['event_name'];
       return $my_line;
    }
    add_filter('eme_csv_header_filter','my_eme_csv_header');

    Edit: this code also relies on the new csv-option, see http://plugins.trac.wordpress.org/changeset/1085184

    #53454
    Anonymous
    Inactive

    Thank you, I am going to try.

    Best Regards

    S

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top