Support

Home Forums Event Espresso Premium EE4 People Add-on new atendee registration for event

EE4 People Add-on new atendee registration for event

Posted: May 9, 2017 at 6:25 am


asteiner

May 9, 2017 at 6:25 am

Hi,

When somebody signs up for event, is it possible to have the person receive an email who is defined as the teacher of that event?

Thanks.


Josh

  • Support Staff

May 9, 2017 at 8:07 am

Hi there,

This will require some custom PHP development if you require automating this process. Otherwise one way to do this without development is you create a custom notfication in the event editor and set the teacher’s email address in the From: field.


asteiner

May 9, 2017 at 11:10 am

I am interested in automating this..

I imagine it would look something like this,
using some hook which fires after new event registration:


function notify_teacher( $event ) {

send_email($event->people->email);

}
add_action('event_registration_hook', 'notify_teacher');


Josh

  • Support Staff

May 9, 2017 at 12:06 pm

Sort of, except you should use https://developer.wordpress.org/reference/functions/wp_mail/
instead of send_email().

There are a number of action hooks you can use, if you open up Event Espresso 4 in your IDE you can do a project-wide search for these hooks for some ideas:

AHEE__EE_Payment_Processor__update_txn_based_on_payment__successful
AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment
AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
AHEE__EE_Payment_Processor__update_txn_based_on_payment

The support post ‘EE4 People Add-on new atendee registration for event’ 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