Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    IF your site is set up so users can control their notification settings, the only way for a user to unsubscribe themselves is to login to the WordPress site and change the setting within their user profile. There is no ability to do this via email.

    Would it be possible to take that option from the backend to frontend by a shortcode?

    +1 for the shortcode. Every site I’ve ever admin’d never uses the wordpress toolbar at the top.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    This request comes up periodically and it isn’t that I don’t think it is a good idea, I am just not sure how to implement it.

    Here is the challenge to add an unsubscribe link to the email – the link would have unique per user. Ok, that makes sense but Email Users doesn’t send out unique emails. By design, Email Users tries to send out as few emails as possible. The only time it sends out one email per user is if the BCC limit is set to 1 which is an atypical use case.

    If there were a shortcode on which could be put on the frontend, what would it do? Changing a user’s settings requires a form submission (I suppose it could be done with a GET request) but once the form is submitted, what is the desired action?

    A widget might be an option. It would only be displayed when the user is logged in. Would that be an acceptable solution?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    If there is an example you can point me to of something which changes something in the user’s profile on the front end I’d be happy to look at it. Seeing a working example might help me get “unstuck” on how to address this request.

    You’re in luck, I’m a plugin developer too. ??

    A widget would be less useful than a shortcode. Requires an element of design. A shortcode can be tossed on a /page/ and makes it easy. Here’s how I would do it:

    1.) In the emails, I would manually provide a link to the page to unsubscribe. domain.com/unsubscribe/ as an example.

    2.) That page would use the shortcode [email_users_unsubscribe] as an example name for it.

    3.) The shortcode would say “You must be logged in to unsubscribe from our mailings” if current user ! logged in.

    4.) If current user is logged in, show them the options for unsubscribing.

    It works, it’s simple, and pretty easy to code I think. Let me know your thoughts!

    Cheers

    Ben

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Users Unsubscribe from Email’ is closed to new replies.