Execute custom function after purchase a course/complete an order in LearnPress?
Question
I need to execute a function immediately when someone purchases a course or an order gets completed successfully. The function I am trying to execute is actually called an API. I don’t see an appropriate Hook from LearnPress.
It works perfectly when I use “user_register”(when someone registers this hook fire) hook but it doesn’t work when I use this “learn_press_confirm_order” hook given by LearnPress.
Do you guys know is there any appropriate way that I can follow and achieve this.
Thank You for your time
0
api, hooks
3 years
2020-04-02T04:52:42-05:00
2020-04-02T04:52:42-05:00 0 Answers
76 views
0
Leave an answer