Hello @forinn,
yes it should work unless the registration form works outside of WordPress logic. We’ll take a closer look on this and then get back to you.
Michael
Hello,
please read carefully this page: https://www.thenewsletterplugin.com/documentation/addons/extended-features/wpusers-extension/
It explains in detail how to add the checkbox even with a custom registration form.
Michael
Thread Starter
wpuser
(@forinn)
This is not a custom form, it is the standard signup form. Other plugins (like buddydev xprofile fields) also work perfectly together with it. Any idea what the issue is in this particular case? I would like to know before adding manual code.
thanks in advance!
Hello @forinn,
that is definitely not a standard signup form but it doesn’t matter, as long as it fires the user_register event. To make the checkbox appear, since it doesn’t automatically, you should use the code you find in the documentation page I’ve linked before.
Thread Starter
wpuser
(@forinn)
I’ve been working on integrating the newsletter subscription functionality for several hours, but I’m encountering some challenges. Unfortunately, I haven’t been able to get it to work as expected.
While I’ve followed the documentation, it doesn’t seem to provide enough detail on how to ensure that the subscription process functions correctly. For example, adding a checkbox with the name “newsletter” does display the checkbox, but it doesn’t seem to subscribe the user to the newsletter.
I would greatly appreciate it if you could provide some guidance or clarify the steps needed to make this work. Based on my testing, I believe the issue lies within the plugin itself, as all my other plugins that integrate with user registration are functioning perfectly.
Thank you in advance for your help, and I’m confident that with your expertise, we can resolve this quickly.
Thank you in advance
Thread Starter
wpuser
(@forinn)
Additionally, I tested the scenario where a logged-in user subscribes to the newsletter after registration. In this case, the subscription is not linked to the user’s WordPress account. As a result, if I delete my WordPress account, my email remains in the newsletter plugin, even though I selected the option to delete users from the database when their WordPress account is deleted.
I noticed it will indeed delete the subscribed email for users who delete their account when I manually linked those users via the backend, but it seems not to work for users who subscribe to the newsletter after registration. Is that correct?
Hello @forinn,
first of all, let’s focus on the registration form issue. You said you’ve added the code I suggested, is that still online? I can’t see it on the link you’ve provided. For troubleshoot purposes, it might be better to create a test page (you can put it behind a basic auth, if needed) where you can replicate the same registration form and where we can perform some tests. I need to take a look at how you implemented the code we provided: <label><input type="checkbox" name="newsletter"> Subscribe our newsletter</label> and check if it fires the user registration.
Thanks
Thread Starter
wpuser
(@forinn)
I have taken it offline on production as it was not working. Happy to put online on staging, but it is behind a authorization on IP address. Can you send me a password protect snippet or dm or something with your IP address so I can whitelist it?
FYI: I just turned on the “default” wordpress theme (Twenty Twenty-Four) with the most basic registration page and also here it is not showing up: https://ibb.co/44ZwcrV (screenshot)
Address of staging site is: dfsdfsfd .nl . preview .services (not pasting url for google) please remove spaces and put in your address bar once I gave you access.
Thread Starter
wpuser
(@forinn)
Hi Michael,
This is a kind reminder on the pending status of this ticket.
Looking forward to your support.
Hello @forinn,
sorry for this delay. You can whitelist this IP: 84.33.80.206
Thanks,
Michael