I'm developing a small event calendar plugin and I want to add the possibility to generate a .ICS file from the events data to export them to Google Calendar. The function that generates this file is already done, but I don't know how to call it from a link or a button in a HTML page. The plugin is written using the class approach.
Any help would be appreciated.
Thanks in advance