Posted: August 30, 2020 at 4:30 pm
Before I go build it myself I wanted to know if there was a way for customers who receive upcoming datetime reminders to opt-out of receiving them?
I want to include the standard (and required by CAN-SPAM act in the USA) unsubscribe link in every email that is generated by the datetime reminder. I would love to hear that this functionality is built but just hidden. 🙂
If not, I think I can build it myself using a combination of registration questions and a custom shortcode… is this the way you would implement this feature if you were going to build it?
Thanks for any advice!
In short, this functionality is not built into the Automated Upcoming Event Notifications and there is no hidden feature/function you can tep into for this.
It’s one option, but not one we would likely use as registration questions are assigned to each individual registration so if the user has multiple registrations then setting it on REG ID 111 wouldn’t stop the emails for RERG ID 222 on another event and so on.
This is a tricky feature to implement because of the above, we can’t really use Registration based answers because of the above, nor could we reliably use WP_User based metadata as not every site requires log in. Maybe extra_meta on the EE_Contact or event a custom table specifically for ‘blacklisted’ emails/contact_ids, I’m just spitballing here though as this would require proper planning.
The query used to correctly pull in the correct registrations and message templates is already a little complex, altering that may also give you unexpected results, so either way this is not a simple feature to implement.