Comment Policy

Welcome to the development website of the Comment-Policy WordPress plugin.

Comment-Policy adds an extra required field in the comment form. This is actually a checkbox with a link to your comment policy page. The visitor must accept the provided comment policy in order to submit a comment. This plugin affects the comment submission and not trackbacks/pingbacks.

How it works

This plugin adds an extra required field to your comment form, a checkbox, which the reader needs to check in order to successfully submit a comment. In other words, the reader needs to accept your comment policy before submitting the comment.

By default, that checkbox is given an initial name, (comterms). When the page is loaded on a browser, the checkbox’s name is modified with Javascript and is set to the name you have specified in the $cp_form_field_name variable, which is actually the field that is checked by WordPress. This means that only browsers or bots that support Javascript can succesfully submit comments to your blog. Without Javascript support, no comment can be actually submitted, even if the checkbox is checked.

Of course you can always override this behaviour by setting the $cp_form_field_name variable to comterms. This way, any client, regardless of the fact that it supports Javascript or not, can successfully submit a comment.

Note that pingbacks/trackbacks are in no way affected.