Feature Request: Allow Site Owners to Exclude Users from EOT Reminder Emails #816
Comments
Yes, great feature! For me, a checkbox on the user's profile would be great. I don't want to send the EOT reminder email for certain users...As it is now, it is all or nothing, which is not suitable for me. Thanks! |
Possible Short-Term WorkaroundThis hack allows you to exclude certain users (by email address) until we improve filters/functionality. Create this directory and file: <?php
add_filter('ws_plugin__s2member_pro_eot_reminder_email_recipients', function($recipients) {
$recipient_emails = c_ws_plugin__s2member_utils_strings::parse_emails($recipients);
$emails_to_exclude = array(
'jane@example.com',
'john@example.com',
);
foreach($emails_to_exclude as $_email_to_exclude) {
if(in_array($_email_to_exclude, $recipient_emails, true)) {
return $recipients = array(); // Prevent email from being sent.
}
}
return $recipients; // Else pass through as-is.
}); |
Nice hack. Thanks. That'll do it for now. Regards |
Next Release Changelog:
|
What's left in this issue? @patdumond suggests...
|
Hey, Jason. Quick and precise! And thanks for mentioning me. About @patdumond suggestion, I really do not see me using it. So, in case you are planning to implement it, it would be great if admin could choose whether or not to give user the possibility to opt-out of the EOT email reminder process. My users will not have this luxury... :) Thanks again. |
Update: Work from this issue was pushed out with the release of s2Member v151218. |
Quite welcome :-)
Copy that. I understand what you mean. I'll give the remaining work some more thought. |
Hi, Jason. Now that you´ve implemented this feature, how can I get/change the value from Thanks. |
Nevermind. I tried May I suggest that you update plugin's documentation with it? Anyway, thanks. |
With the new EOT reminders notifications we've added a much-requested feature to s2Member, but our users still see room for improvement. One request is to allow site owners to flag users to exclude users from receiving the EOT Reminder Emails. The site owner who requested this feature suggested allowing these changes to be made by the Admin on the User's profile. I think it should also be available for the member to change on the user profile generated by
[s2Member-Profile /]
and available for placement on User Registration so that members can opt-out of receiving the email reminders at registration.Reference Private/Internal Ticket: https://websharks.zendesk.com/agent/tickets/10032
The text was updated successfully, but these errors were encountered: