Support

Home Forums Event Espresso Premium URGENT: Getting primary registrant email from within custom shortcode Reply To: URGENT: Getting primary registrant email from within custom shortcode

Reply To: URGENT: Getting primary registrant email from within custom shortcode

Author Replies
Tony # Posted on April 25, 2018 at 2:55 pm

Can I get the attendee details from just the event object,

No, the event object is just all of the event details, it’s not linked to registrations, attendees etc.

or can perhaps I use the other shortcodes within my custom shortcode?

You mean other EE message shortcodes? No but if you don’t have access to the data already, then neither will the shortcode at that point.

I now want to send the users that registered a link to the quiz page with an encrypted version of their email as a url parameter. I can handle the encryption/decryption, but I just need to get the registrant email for this.

What context are you sending the message from?

Which message template etc?

Can you post all of your code to either a gist or pastebin so I can take a look over it?

$data or $extra_data should usually be an instance of EE_Messages_Addressee but its possible that’s not always the case but I’ll need to know where your code is running to narrow it down.

Do NOT follow this link or you will be banned from the site!