Thanks,
Sam
Indeed there are a bunch of functions to achieve what you asked for, and while I was collecting them for providing all here I realised that it only needs a few more lines of text to turn them in a plugin ??
So, I added what’s necessary and made a plugin for you to achieve just these: Remove Email and Website fields and stop collecting IP address for commenters.
You could download the plugin from Github here,
You could also review the code here if interested: https://github.com/alexmoise/No-Email-IP-and-URL-for-Wordpress-Comments/blob/master/no-email-url-ip-wordpress-comments.php
(there a really 2 simple functions).
Feel free to download and use it on your website as needed. Install it in Plugins -> Add New -> Upload Plugin, then click on Choose File and … you know what to do ??
And an IMPORTANT thing: also go to Settings -> Discussion and make sure you deactivate the option named “Comment author must fill out name and email “, otherwise comments cannot be submitted anymore.
Have a great weekend!
Alex.
Another small adjustment if you don’t mind: Beneath ‘leave a comment’ it still says ‘Your email address will not be published.’ even though there is no place to put an email in. Is there a way to get rid of this text?
Also, do you know why the comments system is sending cookies? It doesn’t seem like these are needed for anything. Perhaps you know how to prevent sending them?
Thanks again,
Sam
I updated the plugin now, added a function that empties that text,
Please deactivate & remove the plugin, then download and install again.
Best regards,
Alex.
There’s just one last cookie coming through, it’s called:
comment_author_7f91301b2b4489240125e645808d77f6
Any idea how to prevent it?
Thanks for all this!
Sam
There’s a way to stop that cookie being set too, and doing so will make the Name field always show up empty, even for authors that have commented before, forcing them to type in their name each time they want to submit a comment.
If that’s your intention please let me know and I’ll update the plugin ??
Best regards,
Alex.
Please do update it to get rid of the cookie.
Really appreciate all the help!
Sam
Please deactivate & remove, then download, install and activate.
Let me know if everything works alright!
Best regards,
Alex.
Sam
]]>