leiovo
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] Cannot Edit Any SnippetsHi, thanks for your suggestions, I have tried to add or edit code in a incognito mode, which works fine, so it might be the browser cache issue as your mentioned. Appreciate for your help!
Forum: Plugins
In reply to: [Code Snippets] Cannot Edit Any SnippetsSame issue here, it keeps displaying “loading edit page”
Hi, This has been resolved.
I am using “$membership_id = $morder->membership_id;” to retireve membership_id in recurring payment.
Thanks for your help. 🙂
Hi Jarryd,
Thanks for your reply, I have tried to recreate the webhook and did some tests, I successfully listened to the event.
However, when I want to retrieve the membership_id by using “$membership_id = $morder->membership_level->id;” from the $morder object, it works in “pmpro_after_checkout“, but it returns empty in “pmpro_subscription_payment_completed“.
I checked the documentation for $morder, can I use “$membership_id = $morder->membership_id;” directly to get the membership_id from $morder?
Much appreciate for your help!
Regards