• Hi,
    I am working on a hack that allows me to include a checkbox at comment_form hook.

    I can do that, but I want to make it required. Like, the commentator will see an error page if the checkbox isn’t ticked.

    How do I do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I did something similar by adding the checkbox to the comment form through the filter ‘comment_form_default_fields’. I’m not sure if you use ‘comment_form’ that the checkbox is part of the comment form or not. It would need to be, because I then use the filter ‘pre_comment_on_post’ to check the status of my checkbox.

    Thread Starter Abhik

    (@itsabhik)

    Thanks..
    Working like a charm ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Checkbox at Comment Box and Make it Required’ is closed to new replies.