Support

Home Forums Event Espresso Premium iCal Custmization

iCal Custmization

Posted: December 16, 2013 at 2:38 pm


marketing

December 16, 2013 at 2:38 pm

Is there a way to use custom functions or a hook to modify the contents of the iCal link?


Seth Shoultes

  • Support Staff

December 16, 2013 at 4:23 pm

If you want to override the default pluggable functions for the iCal feature. Look in the event-espresso/includes/functions/ical.php file. You should be able to override the “espresso_ical” function.


marketing

December 17, 2013 at 12:03 pm

Hi Seth,

I tooled around with the function file and this looks like what I need. I’m not sure how to safely override the function though (I know the code, just not where to place it). Where in my overrides can I do this? In the custom_functions, custom_includes?

Main thing I need to do is un-comment the Event Description parts of this so that the description gets sent through the link arguments and into the calendar. I also need to add/tweak some other things.


Josh

  • Support Staff

December 17, 2013 at 2:32 pm

Hi Deborah,

You can copy the entire modified espresso_ical function into /wp-content/uploads/espresso/custom_functions.php and Event Espresso will load functions from there before it loads its functions.


marketing

December 19, 2013 at 2:21 pm

Hi Josh,

Yep this worked, I’m wondering why the Google maps link is not available though. I suppose I can build it out myself with the location information provided but it would be nice to include that. I tried using the google_map_link meta value but it was formatting my link strangely so I left it out.


Josh

  • Support Staff

December 24, 2013 at 8:51 am

Hi Deborah,

I can’t say for sure why the Google Maps link didn’t work, without seeing the code in question.

Did you try using the espresso_google_map_link function?


marketing

January 3, 2014 at 5:39 pm

I was able to get it to pass to the iCal but when I tested in Outlook it stripped some of the ASCII characters out of the link and I was left with a partial link. It may not be possible for iCal / Outlook to work together on this :/

The support post ‘iCal Custmization’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso