How i can remove wordpress comments content validation, I do not want to or examined the earlier there was no such comments.

I see for:

http://codex.wordpress.org/Function_Reference/wp_filter_comment http://codex.wordpress.org/Function_Reference/remove_filter But i don't know how to do this.


Question is: how to remove comment validation on wordpress?

  • What exactly do you want to achieve with this?
    – Robert hue
    Commented Feb 25, 2015 at 10:05
  • @Roberthue i want only remove comment validation -> i.imgur.com/lCzanth.png i created ajax comments adding and i want remove default comments filter. Commented Feb 25, 2015 at 10:13

1 Answer 1


If you take a look in source the condition for this message is get_option('require_name_email'). You can control it in Settings > Discussion > Comment author must fill out name and e-mail.

The programmatic way could be add_filter( 'pre_option_require_name_email', '__return_null' );

  • ok, but most important for me is remove checking if comment are added before. because WordPress does not allow to add two comments with the same content in a row. Commented Feb 25, 2015 at 10:42
  • 1
    Please elaborate in your question about all cases you want to handle. Can't guess them from a single "validation" word. :)
    – Rarst
    Commented Feb 25, 2015 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.