Okay
  Public Ticket #2162670
Email notifications of new / edited events to subscribed users
Closed

Comments

  •  1
    jbphotographics started the conversation

    Im hoping that there may be a feature that I have overlooked. I'd like to be able to have the site send notification email to subscribed users that an event has been added or updated on a subscribed calendar. 

    Ideally Id like to be able to have multiple levels of subscription, with controllable access to multiple calendars, but that one might be a bit of an ask...

    Might there be a use case for this already that I've missed?

  •  784
    Zhivko replied

    Hi,

    Are you familiar with wordpress filters?

    I've included filter for this in file stachethemes_event_calendar\assets\php\class.mail.php line 102:

            $filter = apply_filters('stec_send_event_changed_mail', array(
                'emails'  => $email_list,
                'subject' => $subject,
                'content' => $content
                    ), $old_event, $new_event);

    Example:

    add_filter('stec_send_event_changed_mail', function($settings, $old_event, $new_event){
        
        // Additional emails list
        $additional_emails = array(
            '[email protected]',
            '[email protected]'
        );
        
        // Merging new email list with the default emails
        $settings['emails'] = array_merge($additional_emails, $settings['emails']);
        
        return $settings;
    }, 10, 3);
    

    Stachethemes Developer

  •  1
    jbphotographics replied

    I have no experience, but will be diving into them now and learning. Will need to figure out how to send only calendar A data to calendar A users, and Calendar B data to Calendar B users...


    Thank you greatly.. Love the calendar so far.

  •  784
    Zhivko replied

    Okay, let me know if you have any questions.

    Note: by default the calendar sends email notifications to the event's attendees and organizers.



    Stachethemes Developer