Optional newsletter subscription for WP users
I want to give WP users the ability to subscribe for the newsletter using radiobuttons (yes/no) in the update profile form. I don’t want to use the widget because I want them to register with their WP Email.
I now see two options:
1. I switch roles depending on whether the user said yes or no. Therefor I would like to know, if I can trigger the list syncing via php.
2. I register/unregister the user directly via php. Therefor I would like to know, if there are any functions I can call to do so.
In addition: If the are registered the first time (and only then) I want to send them a confirmation email. This would apply to both solutions.
Thanks in advance.
- The topic ‘Optional newsletter subscription for WP users’ is closed to new replies.