Unsubscribe users upon User Role "demotion"
-
Hi, thanks for the plug-in.
All users on my site are paid members. We use the “User Groups” plug-in to organize them into groups by where they live. Different Newsletters are sent out using “Email Users” based on those groupings.When someone’s membership expires, we demote his/her “Site Role” to “none on this site” — so at that time, this person is not even a subscriber or user anymore.
But these non-subscribers are still getting Newsletter from us… is there a way to “unsubscribe” the users via php function when their user role changed to NULL?
I already know how to get WordPress to run custom functions upon user role changes, I just need a code sample to “unsubscribe” the user in “Email Users”Thank you in advance
- The topic ‘Unsubscribe users upon User Role "demotion"’ is closed to new replies.