Events with woocommerce integration
-
Hello,
we are using woocommerce that triggers the pms subscription. Although the interaction works well, we also need to perform custom actions on event hooks. The problem is that activation through woocommerce does not include proper data in the hook, and the action thus fails. Other events seem to be fine.
We are listening to pms_member_subscription_insert, pms_member_subscription_update, pms_member_subscription_delete, pms_abandon_member_subscription_successful. Actions fired from within the plugin (expiration…) work well, hovewer, wordpress activation just does not include proper data.
(
[expiration_date] => 2023-03-03 14:08:11
[billing_next_payment] =>
[status] => active
)This and the subscription ID is basically all I can get. Trying to access the subscription object via pms_get_member_subscription returns almost empty object (equals to the third argument in update hook).
I would need to know which plan the subscription includes, this data is missing. Looks like a bug IMHO, the plan must be known at this point.
Thank you for any help
- The topic ‘Events with woocommerce integration’ is closed to new replies.