I like to know if there is a way to integrate the newsletter subscription within the wp-members registration process.
My idea was to add a checkbox (want newsletter?) to the registration form,
and on submission also to add the new user to the newsletter subscriber-list.
There is a hook in wp-members, bevor the user is added to database (wpmem_pre_register_data).
Here would be the place to hook into the newsletter subscription, but I can`t figure out where the “neesletter-subscription-magic” is happening.
your suggestion helped me a lot!
In conjunction with the hint of Stefano to put a custom field in the registration form of wp-members <input type=”checkbox” name=”newsletter” value=”1″> a user is now subscribed to the newsletter.
Ok. Double-Opt In isn’t working this way, and a new newsletter subscriber keeps with the state of “not confimed”.
The coolest thing would be, if there was a possibility to put the subscription-link to newsletter in the mail a user gets after registration from wp-members form.
The token you add to nk=userid-token is dynamic right?
No chance to put it in a foreign-form?