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

    (@mpwalsh8)

    Such a function doesn’t currently exist and I am not sure where it would appear on the frontend. The only thing I could think of would be some sort of widget that could be placed in a widget area that would appear when a user is logged in.

    Even doing that would require a form submission of some sort although I suppose a link with some sort of action embedded in it could be created. Either way, it isn’t a simple operation – what would you envision happening after the user changes their subscription?

    Currently the user can change their subscription status from their own profile page as long as the ability to do so is enabled. Since the user’s profile is typically available from the WordPress bar at the top of the page, would using this work?

    Thread Starter Jenny

    (@maxtron852)

    I dont have enable wordpress bar on my website and my users can′t access a backend profile or wordpress admin. I have a profile page on frontend and I’d like add the option “Accept to receive post or page notification emails” on my user profile page.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Are you using some sort of a plugin to provide your users profile access on the frontend? I am not sure how it would be possible to support this use model in the general case. As I noted above, I cannot envision a simple solution. An AJAX solution would probably work but it isn’t simple nor quickly thrown together.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    One more thought – the notification settings are stored as user meta data which uses the standard WordPress API. If you already have a customized frontend for user profiles, adding two more options to store meta data shouldn’t be too hard but I think it would be a custom solution for your needs.

    These are user meta settings you’d want to modify (from email-users.php):

    // User meta
    define( 'MAILUSERS_ACCEPT_NOTIFICATION_USER_META', 'email_users_accept_notifications' );
    define( 'MAILUSERS_ACCEPT_MASS_EMAIL_USER_META', 'email_users_accept_mass_emails' );
    Plugin Author Mike Walsh

    (@mpwalsh8)

    Marking resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Users Unsubscribe on frontend’ is closed to new replies.