Support

Home Forums Community Forum Hooks not working with EE4 Decaf ?

Hooks not working with EE4 Decaf ?

Posted: November 21, 2016 at 10:56 pm

Viewing 1 reply thread


hardik123

November 21, 2016 at 10:56 pm

I have downloaded EE4 Decaf from the site and install over WordPress.
I have created certain events and displayed perfectly on frontside.
Now when user register event successfully, i want the attendee data.
For that i have used below code.
Below code work perfectly in previous version of EE plugin but does not show any result with EE4 Decaf while registration succeed.

<?php 
function custom_espresso_save_attendee_data($attendee_data) {
//code Here
}
add_action('action_hook_espresso_save_attendee_data', 'custom_espresso_save_attendee_data', 10,1);
?>

Why is this so?
Please help me out.


hardik123

November 21, 2016 at 11:47 pm

I have downloaded EE4 Decaf from the site and install over WordPress.
I have created certain events and displayed perfectly on frontside.
Now when user register event successfully, i want the attendee data.
For that i have used below code.
Below code work perfectly in previous version of EE plugin but does not show any result with EE4 Decaf while registration succeed.

<?php 
function custom_espresso_save_attendee_data($attendee_data) {
//code Here
}
add_action('action_hook_espresso_save_attendee_data', 'custom_espresso_save_attendee_data', 10,1);
?>


Josh

  • Support Staff

November 22, 2016 at 7:52 am

Hi there,

The reason that your custom code isn’t working with EE4 is because the hooks (and everything else for that matter) in EE3 are not compatible with EE4.

Viewing 1 reply thread

The support post ‘Hooks not working with EE4 Decaf ?’ 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