Page 7 of 8

Re: Feature Requests

Posted: Thu Mar 20, 2014 5:01 pm
by lexhair
Add the following hook when inserting/updating WP_CALENDAR_TABLE for new/edited entries:

Code: Select all

do_action('add_calendar_entry');
Goes in two places. After the query on line 1221 and line 1388 or so.

The hook will allow me to write an ics file for google/calendar subscriptions (which I was running as a separate cron anyway). That way I only hit the server with a query when I update the calendar.

Thanks in advance,
John

Re: Feature Requests

Posted: Thu Mar 20, 2014 7:49 pm
by lexhair
While I'm asking for hooks, how about a filter hook on the $linky variable in draw_events() function. I'd like to be able to change the '#' href to a link which will download the event as an ics file.

Right after you define$linky, you can add the following filter hook:

Code: Select all

$linky = apply_filters('modify_calendar_link', $linky, $event);
By providing the $event object as an argument, I can use the ID property to develop my link for the ics file.

Thanks again,
John

Re: Feature Requests

Posted: Fri Mar 21, 2014 6:38 pm
by lexhair
lexhair wrote:Add the following hook when inserting/updating WP_CALENDAR_TABLE for new/edited entries:

Code: Select all

do_action('add_calendar_entry');
Goes in two places. After the query on line 1221 and line 1388 or so.

The hook will allow me to write an ics file for google/calendar subscriptions (which I was running as a separate cron anyway). That way I only hit the server with a query when I update the calendar.

Thanks in advance,
John
Actually, this goes in three places (forgot the delete event query). I also added another argument so the do_action callback function would know whether it was a new event, edited event or deleted event.

Re: Feature Requests

Posted: Wed Oct 01, 2014 7:08 pm
by Antonimo
Export to ICS

It would be nice if site visitors could export calendar entries as an ICS file to import into Outlook.

Just a thought.

Best wishes,

Re: Feature Requests

Posted: Tue Oct 07, 2014 3:39 am
by marcusqueen
It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.

Thanks.

Re: Feature Requests

Posted: Mon Nov 10, 2014 3:40 pm
by sandralambert
It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.

Re: Feature Requests

Posted: Mon Feb 02, 2015 1:22 pm
by Kieran
sandralambert wrote:It would be great if we could create multiple calendars for different pages. I have different counties that would require different event calendars.
You can do that already; create one category per country, then add the calendar to multiple pages with tags like the following

Code: Select all

{CALENDAR;1}
{CALENDAR;3}
Where the digits specified are the category numbers.

Re: Feature Requests

Posted: Tue Jan 05, 2016 5:14 pm
by lexhair
Please consider adding date_created and date_modified (or just date_modified) to the database table schema.

Re: Feature Requests

Posted: Thu Jun 21, 2018 8:50 am
by wxmmoz
I’m going to start adding events to my calendar which repeat on the Xth day of a month every year, eg every 3rd Wednesday in May every year. Any chance of making this an option on the recurring dates field?

Re: Feature Requests

Posted: Thu Oct 04, 2018 10:17 am
by vestertraining
wxmmoz wrote:I’m going to start adding events to my calendar which repeat on the Xth day of a month every year, eg every 3rd Wednesday in May every year. Any chance of making this an option on the recurring dates field?
Have exactly the same issue, I read in older posts that this feature may be already implemented. Any ideas on how to make use of it?

Thanks in advance!