Home Forums Event Espresso Premium EVENT_AUTHOR_EMAIL shortcode


Posted: April 2, 2019 at 4:19 am


April 2, 2019 at 4:19 am

I have read your previous support thread on this topic but am still having trouble. I have created a custom message for approval of waitlisted participants. I have used the shortcode in this format in the HTML: <a href="mailto:[EVENT_AUTHOR_EMAIL]">[EVENT_AUTHOR_EMAIL]</a> but in the resulting email, there is no link or text at all. What am I doing wrong?

  • This topic was modified 1 year, 9 months ago by  Tony. Reason: Code fix


  • Support Staff

April 2, 2019 at 4:25 am

Hi there,

When you say a custom message, have you created a custom message template or edited the ‘default’ template?

The ‘default’ templates are used by default for all events so if the changes you are making are for all events you can just edit that template, if it’s for a specific event and you want the default template used for others you need a ‘custom template’.

If you’ve created a custom template, have you selected that template on the event itself? –


April 2, 2019 at 5:03 pm

Hi Tony, yes it is a custom template and I have selected it within the event.


April 3, 2019 at 7:02 pm

I have a PDF with 3 screenshots that might help you spot the issue. How can I send it to you?


  • Support Staff

April 4, 2019 at 5:19 am

No need for screenshots, I’ve managed to reproduce and found the cause (which took some tracking down!).

For future reference, with screenshots you need to host the image (or a PDF containing them if that’s what you prefer) somewhere and then post the link here for us to view, for example with the above you could use your sites media library, upload the PDF and then add the link here for us to download.

We have some more examples here:

The fix for this requires a change to the waitlist add-on with how it constructs the data used in the message, I can give you a simple path that should work if your are comfortable enough with PHP to apply it?

In \eea-wait-lists\domain\entities\EE_Waitlist_Message_Type_Base.class.php

In the _registrant_addressees method around line 157 you’ll have this:

$data_for_addressee['events']    = $this->_data->events;
$data_for_addressee['reg_obj']   = $this->_data->reg_obj;
$data_for_addressee['attendees'] = $this->_data->attendees;

Just above that first line, add this:

$first_event = reset($this->_data->events);
$data_for_addressee['user_id']   = $first_event['event'] instanceof EE_Event ? $first_event['event']->get('EVT_wp_user') : null;

What that does is set up the Event Author data for the first event passed to the message (with this message type there should only be one single event for the message, but its set up to handle many if that should ever become available, so this always just uses the first).

Generally, we advise again modifying core but I’ve created a ticket to have either the above or something similar included in the next version of the waitlist add-on, so in this specific case it shouldn’t matter.


April 4, 2019 at 9:33 pm

Thank you Tony!


  • Support Staff

April 5, 2019 at 6:41 am

You’re most welcome.

Just curious, did you try the above or are you waiting for the next release?


April 7, 2019 at 5:44 am

I used your code and it worked. Thank you.


  • Support Staff

April 7, 2019 at 2:14 pm

Great, thanks for for testing it out 🙂

The support post ‘EVENT_AUTHOR_EMAIL shortcode’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 9 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!