Title: ICS default reminder function is missing
Last modified: November 11, 2023

---

# ICS default reminder function is missing

 *  [mikeknappe](https://wordpress.org/support/users/mikeknappe/)
 * (@mikeknappe)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/ics-default-reminder-function-is-missing/)
 * Hi there,
 * I like your plugin a lot. It’s fits my needs to 100% and it’s easy to use. Some
   users of the calendar feed told me, that they are missing the reminder function.
   After I searched for it, it was clear: The plugin has no reminder function.
 * The ICS tags are simple though:
 *     ```wp-block-code
       BEGIN:VALARM
       ACTION:DISPLAY
       TRIGGER:-PT1H
       DESCRIPTION:Some desc of the event 1h before start
       END:VALARM
   
       BEGIN:VALARM
       ACTION:DISPLAY
       TRIGGER:-PT2H
       DESCRIPTION:Some desc of the event 2h before start
       END:VALARM
   
       BEGIN:VALARM
       ACTION:DISPLAY
       TRIGGER:-P1D
       DESCRIPTION:Some desc of the event 1d before start
       END:VALARM
       ```
   
 * It’s within the START:VEVENT and END:VEVENT tags.
 * Hopefully you find this functions also useful and implement it in the near future.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [mikeknappe](https://wordpress.org/support/users/mikeknappe/)
 * (@mikeknappe)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/ics-default-reminder-function-is-missing/#post-17202082)
 * I’ve searched within the code and you have a hook, which can be used to modify
   the alarm for events. Which is awesome and helps a lot, but it would be nice 
   to have a GUI for an event to set individual alarms for each event.
   Beware of
   the plural: ICS is able to store more than one alarm and the current code is 
   only able to insert one alarm for all events.
 *  Thread Starter [mikeknappe](https://wordpress.org/support/users/mikeknappe/)
 * (@mikeknappe)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/ics-default-reminder-function-is-missing/#post-17202093)
 * Well, for those who want to use the hook:
 *     ```wp-block-code
       /**
       * Filter information used to set an alarm on an event in .ics files.
       *
       * @hook mc_event_has_alarm
       *
       * @param {array} Alarm information passable to mc_generate_alert_ical()
       * @param {int}   $event_id Event ID.
       * @param {int}   $post Post ID.
       *
       * @return {array}
       */
       ```
   
 * To use it, you create your own plugin or insert something like the following 
   in the functions.php of your theme:
 *     ```wp-block-code
       //Set a default calendar alarm for My Calendar Plugin
       function set_default_calendar_alarm( $retArr, $postId, $postArr )
       {
       	$retArr = array(
       		'TRIGGER' => '-PT2H'
       	);
       	return $retArr;
       }
       add_filter( 'mc_event_has_alarm', 'set_default_calendar_alarm', 10, 3 );
       ```
   
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/ics-default-reminder-function-is-missing/#post-17210990)
 * If you’d be willing to open this as a feature request on the [My Calendar Github](https://github.com/joedolson/my-calendar/issues)
   repository, I’d greatly appreciate it!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ICS default reminder function is missing’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/ics-default-reminder-function-is-missing/#post-17210990)
 * Status: not resolved