[wp-trac] [WordPress Trac] #43797: Consent Logging

WordPress Trac noreply at wordpress.org
Wed Apr 18 23:00:23 UTC 2018


#43797: Consent Logging
-------------------------+------------------------------
 Reporter:  xkon         |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  gdpr         |     Focuses:
-------------------------+------------------------------

Comment (by mnelson4):

 The “WP GDPR framework” already has an implementation of this that sounds
 pretty good: https://codelight.eu/wordpress-gdpr-framework/developer-docs/
 (scroll to “consent”).
 They mention functions

  {{{#!php
 <?php
 gdpr('consent')->register(...)
 }}}

  (so you can register meta information about the consent, like a pretty
 name, so that data doesn’t need to be repeated),

 {{{#!php
 <?php
 $dataSubject = gdpr('data-subject')->getByEmail($_POST['email']);
   $dataSubject->giveConsent('my_custom_consent_slug');
 }}}

 (because not all data subjects will be users, and grants specific
 consent), and a filter for handling what to do when consent is revoked.
 I haven’t used it myself, but thought I’d mention the prior art.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43797#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list