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.
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:
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:
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. 😉