Okay
  Public Ticket #3374375
Edit User Notification
Closed

Comments

  •  2
    Robin started the conversation

    Hi Zhivko

    One other thing: how can the date of the event be added to the user notification email template? {{attend_date}}  does not work.

    Cheers,
    Robin

  •  877
    Zhivko replied

    Place this filter in your functions.php

    add_filter('stec_mail_add_special_words', function ($filter, $text, $event) {
        $date_format = 'Y-m-d H:i'; // e.g. 2023-01-01 00:00
        $filter['replace'][] = '{{event_date}}'; 
        $filter['with'][]    = $event->get_start_date($date_format); 
    
        return $filter; }, 10, 3);

    and use {{event_date}} instead of {{attend_date}}


    Stachethemes Developer

  •  2
    Robin replied

    Perfect, thanks!