Support

Home Forums Event Espresso Premium EE4 email notifications – insert button to directly change registrant statuses

EE4 email notifications – insert button to directly change registrant statuses

Posted: March 14, 2017 at 8:49 am

Viewing 1 reply thread


JacquesMivi

March 14, 2017 at 8:49 am

Hello,

I use the EE4 email notifications platform and it works: each time there is a new registrant, the event creator receives an email. I would like to go further and give more possibilities to the event creator and insert the following buttons or functions within the notification he receives:

* A button to change the registrant status from “pending” to “approved” and that triggers the dedicated notification to the registrant
* A button to change the registrant status from “pending” to “refused” and that triggers the dedicated notification to the registrant

Do you have an idea of what shortcode or function I should call to implement such a possibility?

Thanks a lot for your help


Tony

  • Support Staff

March 15, 2017 at 5:57 am

Hi there,

There’s no shortcode for this and the methods that set the registration to a different status are protected methods so if your going to create this you’ll need to create your own function to do so.

Take a look within \event-espresso-core-reg\admin_pages\registrations\Registrations_Admin_Page.core.php

Look at that _set_registration_status_from_request method, not that it also calls _set_registration_status and _process_resend_registration which are also protected methods.

We don’t provide front end management for Events , Registration etc so anything like this is going to need custom development, you’ll also need to be careful to ensure only authenticated users can use this function and only on ‘their’ events or your opening up a whole new can of worms 🙂

Viewing 1 reply thread

The support post ‘EE4 email notifications – insert button to directly change registrant statuses’ 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