- This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › csv-download of subscriptions – addition al information
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
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)
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
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
Thank you, I am going to try.
Best Regards
S