Support

Home Forums Event Espresso Premium Woocommerce Integration

Woocommerce Integration

Posted: May 8, 2016 at 8:53 pm

Viewing 1 reply thread


fsmith11

May 8, 2016 at 8:53 pm

Hi, I’m going to try my hand at writing a function that adds a registration to EE4 once a product is purchased in Woocommerce. Can you please point me to the EE4 hooks I will need to use for this?


Josh

  • Support Staff

May 9, 2016 at 7:56 pm

Hi there,

I thought about this, and I think you’d use a Woocommerce action hook and add a function callback that adds a registration to EE4. This when the action hook in Woocommerce is fired, your custom code will run because it’s attached to that hook.

Then, to interact with Event Espresso’s data, you can use the model system. There’s an example in this documentation:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/model-querying.md#inserting

There’s also general information about Event Espresso’s action and filter hooks in this document:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/A–Best-Practices/ee-actions-and-filters.md

Viewing 1 reply thread

The support post ‘Woocommerce Integration’ 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