I have member only pricing for tickets. Once someone purchases a ticket for a meeting I want to add to the user role. So, for example, their current role is listed as member. After the ticket is purchases I want to add the role of 2019 Attendee. Do you have a hook I can do this with or is it already inside of the WP User Integration Plugin?
At this point yes. I have been using WooCommerce to sell tickets and my entire site is setup to allow special privileges based on the role. I am exploring adding capabilities but will wait until after the meeting to make further changes to my site.
I have been using WooCommerce to sell tickets and my entire site is setup to allow special privileges based on the role
Not roles? That’s a significant and important distinction, depending on how whatever it is that’s checking for the role it may not support multiple roles.
In any case, you can use AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment which is passed the EE_transaction object as its first parameter which I’m assuming you’ll need to confirm which ticket was purchased.
The support post ‘Change User Role’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.