mc_event_has_alarm - joedolson/my-calendar GitHub Wiki

Filter information used to set an alarm on an event in .ics files.

Auto-generated Example

add_filter(
   'mc_event_has_alarm',
    function(
        array $data,
        int $event_id,
        int $post
    ) {
        // Your code here.
        return $data;
    },
    10,
    3
);

Parameters

  • array $data Alarm information passable to mc_generate_alert_ical()
  • int $event_id Event ID.
  • int $post Post ID.

Returns

array

Files

apply_filters( 'mc_event_has_alarm', array(), $event->event_id, $tags['post'] )

← All Hooks