Support

Home Forums Event Espresso Premium How to query all Events show by Registed Email

How to query all Events show by Registed Email

Posted: October 14, 2018 at 1:59 am

Viewing 1 reply thread


Margaret Sax

October 14, 2018 at 1:59 am

Hello everyone,

After user register Event, it will be sent an Email to the user registered email (User does not save to WordPress account – Not using AddOn Integration wp user).
when user register Events, I make some ajax to create the user in WordPress with email user register in Event. (user email in wp will same with the email of User register Event)

now, I want to query all Events base On email was register and I want to show Events in the user profile,
such as the user with email :

terry@gmail.com
+ Events one.
+ Events Two
+ Events Three

Help me please,

Sorry for my English not Good.


Tony

  • Support Staff

October 15, 2018 at 4:52 am

Hi there,

It seems you are trying to build out similar functionality as the WP User integration add-on, so may I ask why you are not using that add-on?

To answer your question you can use something like this:

$events = EEM_Event::instance()->get_all(
    array(
        array(
            'Registration.Attendee.ATT_email' => '{email_address}',
        ),
    )
);

Note however that whilst we are happy to help point you in the right direction, we can not provide support for customizations such as the above.

Viewing 1 reply thread

The support post ‘How to query all Events show by Registed Email’ 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