Support

Home Forums Event Espresso Premium How can I add [fname] [lname] to the admin email confirmation email Subject?

How can I add [fname] [lname] to the admin email confirmation email Subject?

Posted: January 19, 2014 at 12:08 pm


Michael Mansell

January 19, 2014 at 12:08 pm

I understand that the admin email can be modified at: includes/functions/email.php starting on line 416 but what and where would I add in that code the first and last name of the new registered attendee info? Thank you


Dean

January 20, 2014 at 2:14 am

Hi Michael,

At about line 464 is an array that contains ’email_subject’ this is what needs to be edited.

So for example you could change:

'email_subject' => !$data->multi_reg ? $data->event->event_name . ' ' . __('registration confirmation', 'event_espresso') : __('Event Registration Notification', 'event_espresso'),

to this

'email_subject' => !$data->multi_reg ? $data->attendee->fname . ' ' . $data->attendee->lname . ' ' . __('registration confirmation', 'event_espresso') : __('Event Registration Notification', 'event_espresso'),

The support post ‘How can I add [fname] [lname] to the admin email confirmation email Subject?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso