WP Comment Policy Checkbox

Plugin Banner

WP Comment Policy Checkbox

by fcojgodoy

Download
Description

Add a checkbox to the comment forms so that the user can give consent to the web’s privacy policy. And save this consent in the database.

Features

  • Add a required privacy policy checkbox to the default WordPress comment forms, with a link to you privacy policy page.
  • Allow display a customized text before the checkbox.
  • Allow an external link as a page of the privacy policy.
  • Allow open privacy policy link in the same tab or in a new one.
  • Allow HTML link types attribute in the policy page link, for SEO reasons (nofollow, external…).
  • The consent is stored in the database, in wp_commentmeta table with the metakey wpcpc_private_policy_accepted, and the commentator’s email as value.
  • The consent is exported by WordPress’s Export Personal Data function.
  • The consent is erased by WordPress’s Erase Personal Data function.
  • Compatible with UnderStrap and themes that set is own fields on comment form.
  • Compatible with Webmention (thank to @danielp6).

Use

You can configure the plugin in the Discussion Settings on your WordPress administration.

Theme compatibility

The plugin only works if the theme uses the native WordPress function for comment forms.
Also, the plugin creates a concrete HTML structure to print the checkbox. Not in all theme will be displayed correctly. In that case, you could use the ‘Additional CSS’ box in the Customize of your theme.

Contributing

  • Active development of this plugin is handled on GitLab
  • Translation of the plugin into different languages is on the translation page.

Donation

If you enjoy using this plugin and find it useful, please consider making a donation in PayPal.
Thank you!

Use the installer via back-end of your install or:
1. Unpack the download-package.
2. Upload the files to the /wp-content/plugins/ directory.
3. Activate the plugin through the Plugins menu in WordPress.

  1. Setting fields on comments setting page.

    Setting fields on comments setting page.

  2. Basic policy information, policy checkbox and link printed on the bottom of the comment form, before the submit button.

    Basic policy information, policy checkbox and link printed on the bottom of the comment form, before the submit button.

  3. Error message if the policy checkbox is not checked.

    Error message if the policy checkbox is not checked.

I installed the plugin correctly, put in the text & set the privacy policy page, but the checkbox & text does not appear below the comment box

The plugin only works if the theme uses the native WordPress function for comment forms. Your theme is probably not compatible with this plugin.

Better than native solutions from wordpress

By winterfjell on August 20, 2023

I like it more than the wordpress solution with cookie consent, because the consent is stored in the database. It works as long you use the native WordPress comment form. You just have to add the link to your privacy policy page. If you want more, you find the plugin settings is available under Settings -> Discussion. Using this plugin since years now and I am absolutely satisfied. Thank you.

Sencillo y efectivo

By AlvaroC (lordman) on December 11, 2022

Sencillo de configurar, muy útil y efectivo. Excelente y recomendable.

Doesn't work for Reviews in WooCommerce 5

By Martin Braun (martinbraun) on January 24, 2022

/removed

Great Lightweight Consent Plugin for WordPress Comment

By jamestanjames on January 6, 2022

It works for native WordPress comment form. Once installed it is ready to use (just need to link your privacy policy page but it works without the page). Just in case, this plugin settings is available under Settings > Discussion.

Necesario para el RGPD

By neoset on July 5, 2020

Gracias por el plugin, espero que siga siempre activo.

Uno de esos plugins que hay que tener apuntado

By rearjm on August 29, 2019

Este plugin es genial. Cumple con su funcionalidad al 100%. Super-útil para cumplir la RGPD en los comentarios. Y además php-spanish ¡Olé!

Should be a core feature

By Ate Up With Motor on September 17, 2018

Excellent, straightforward, lightweight plugin provides a functionality that really should be part of WordPress core at this point. Until it is, this is a useful solution -- and a more logical approach than some others I've tried because it directly associates acceptance with the actual comment in the database.

Great plugin.

By worldofcredence on May 30, 2018

Great plugin. With a few more tweaks it'll be perfect. M.

Simple et efficace

By wyse92 on May 26, 2018

Ce plugin fait exactement ce qu'il dit, il ajoute une case à cocher obligatoire avec un lien vers la politique de confidentialité du site. Il reste à finaliser la traduction en Français

¡Gracias por el plugin!

By lauradiaz on May 23, 2018

Muchas gracias por actualizar el plugin, no veas lo útil que nos está siendo para cumplir la RGPD en los comentarios.

0.4.1

  • Fix error when a logged in user try to create a comment. Issue #44

0.4.0

  • [New Feature] Allow open privacy policy link in the same tab.
  • Added compatibility with UnderStrap and themes that set is own fields on comment form.
  • Added support for Webmention comments (thank to @danielp6).
  • Added settings link in the Plugins list table.

0.3.2

  • [New Feature] Link types attribute for policy page link.
  • Fix ‘warning’ literal namespace

0.3.1

  • [New Feature] Allowed an external link as a page of the privacy policy.
  • Improved the translatability of the text string of the privacy policy notice.
  • Fixed HTML markup error.
  • Changed ‘error’ to ‘warning’ in the unchecked checkbox warning message.

0.3.0

  • [New Feature] Store, export and erase the commentator’s consent.

0.2.5

  • Fix grammar mistake
  • Margin right on input
  • Fix attribute _blank error

0.2.4

  • Fix translatable text

0.2.3

  • Update pot translate file

0.2.2

  • Improve gettext strings

0.2.1

  • Improve gettext strings
  • Small font for policy basic info

0.2.0

  • Improve code
  • Add id for accessibility to checkbox input
  • Force checkbox appearance
  • NEW! Optionally, you can display a customized text before the checkbox.

0.1.7

  • Add ‘GDPR’ tag to plugin.
  • Fix readme errors.

0.1.6

  • Fix error occurred when user is logged in.

0.1.5

  • Change languages file names.

0.1.4

  • Fix file names.

0.1.3

  • Fix Internationalization.

0.1.2

  • Fix generic define names.

0.1.1

  • Modified main file Description on head comment.

0.1

  • First version, still in beta.
Back to top