• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the user reminder checkbox in WordPress comments

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
Default checkbox in WordPress comments

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 839 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
WordPress comment that does not show the remember user checkbox

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

Comments PHP WordPress

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?