Hi guys
I have had some requests from a client for features which dont seem to be a part of this plugin, though I feel should be because they just make sense to be there.
The client would like admin notifications when a user has cancelled their subscription, they offer a 14 day trial so most cancellations would probably be within this period. I can see in S2Member > API/Notifications > Cancellation Notifications that this could be set up using a mu-plugin and have followed the link to https://s2member.com/kb-article/building-an-api-notification-handler-webhook/ but can I just copy the function and change s2_payment_notification
to s2_cancellation_notification
?
In the code example on that page, it shows how to set up the function and pull in the values from the URL etc but it doesn’t then demonstrate how to send the mail, are there any examples of this?
The client then also wants the user to receive a cancellation notification with a different message?
Thanks in advance for your help.