Learn in this tutorial how to remove the WordPress comments checkbox to remember user data using code.
By default, WordPress displays a checkbox that allows, if accepted, to save data such as user name, email and web.
![Default checkbox in WordPress comments](https://osomcode.com/wp-content/uploads/2022/12/Default-checkbox-in-WordPress-comments-859x1024.webp)
But what if you prefer not to display this field?
In that case, just use a WordPress filter.
Snippet to hide the user reminder box in WordPress comments
Add the following code at the end of functions.php or in your functionality plugin:
To see this and another 1091 code snippets of this website, login or subscribe here.
With this block you use the comment_form_default_fields
filter to remove the checkbox to remember the user and get the result you are looking for:
![WordPress comment that does not show the remember user checkbox](https://osomcode.com/wp-content/uploads/2022/12/WordPress-comment-that-does-not-show-the-remember-user-checkbox-933x1024.webp)
Conclusions
Now you know how to remove the checkbox to remember user data from WordPress comments.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉