Skip to content

Send reminder emails from the date of booking #448

Answered by liedekef
LicetBovi asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, yes I see. Sorry, I thought the screenshot were the relevant options, but not in your case.
You'll need to hook into eme_events_daily_action, get the list of events, then bookings per event, and then go over each booking creation time. A starter:

add_action('eme_events_daily_action','my_custom_eme_events_daily_action_function', 10, 0);
function my_custom_eme_events_daily_action_function() {
        $events = eme_get_events( extra_conditions: 'event_rsvp=1');
        foreach ($events as $event) {
            // do something here, send mails, check attendees, ...
            $bookings = eme_get_bookings_for($event['event_id']);
            foreach ($bookings as $booking) {
             …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LicetBovi
Comment options

@liedekef
Comment options

Answer selected by liedekef
@LicetBovi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants