0

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.

screenshot

Question is: how to remove comment validation on wordpress?

  • What exactly do you want to achieve with this? – Robert hue Feb 25 '15 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. – user3501587 Feb 25 '15 at 10:13
0

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. – user3501587 Feb 25 '15 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 Feb 25 '15 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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