Skip Navigation

[Resolved] GDPR and Toolset user registration/editing

This thread is resolved. Here is a description of the problem and solution.

Problem:

Integrate GDPR plugin with Toolset Forms
The basic need here would be to include the plugin consent checkboxes:
http://gdpr-wp.com/knowledge-base/save-user-consent-using-a-custom-registration-form/

Solution:

There isn't such a built-in feature within CRED form, here are my suggestion, you can try these:

1) Create shortcode for redering consent GDPR checkboxes:

https://codex.wordpress.org/Function_Reference/add_shortcode

2) Put above shortcode into the CRED form

3) After user submit the CRED form, use CRED action hook cred_save_data to save the consent checkboxes values:

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by PiotrO586 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#772360

Hi,

with connection to the new GDPR law, I'm looking for a tool which would help me to conform to these regulations. There is one plugin: https://wordpress.org/plugins/gdpr/. Could you recommend any solution to integrate the plugin forms into the CRED user registration form? The basic need here would be to include the plugin consent checkboxes:
hidden link

Thanks for any hints.

#775276

Hello,

There isn't such a built-in feature within CRED form, here are my suggestion, you can try these:
1) Create shortcode for redering consent GDPR checkboxes:
https://codex.wordpress.org/Function_Reference/add_shortcode

2) Put above shortcode into the CRED form

3) After user submit the CRED form, use CRED action hook cred_save_data to save the consent checkboxes values:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

For your reference.

#780177

Hi Luo,

thank you.

And do you have any suggestions on how to design a workflow to handle user requests to remove/provide them with their data in the case of forms submitted without having user account, but which contains private data like names/emails?

Is it eventually better to require user to register on a website, which I imagine makes it easier to automate user-submitted data for admins and users themselves?

As I am still during website development stage, I'd prefer to put some more effort now but come up with more efficient way to handle this.

#782350

For the new question:
how to design a workflow to handle user requests to remove/provide them with their data ...

Are we talking about this:
limit the user access to his own data, user can not see/remove other user's data?

If it is, you are right, it is better to require user to register and login on website, then you will be able to get the user's ID and user's data, you can create a CRED form for editing current user.
https://toolset.com/documentation/user-guides/cred-user-forms/

#785361

Dear Luo,

I rather mean situation when users requests to provide them with what we store about them or requests to remove their data.

1. How is processed removal of the parent CPT with children CPT, are the children removed as well automatically?
2. How is processed removal of the CPT authored by a user? If I remove a user, are his CPT removed automatically as well?

#791057

For the new questions:
Q1) How is processed removal of the parent CPT with children CPT, are the children removed as well automatically?
There isn't such a built-in feature within Toolset, but it is possible within some custom codes, for example, when user delete a parent post, you can use wordpress action hook "delete_post" to trigger a PHP function,
https://developer.wordpress.org/reference/hooks/delete_post/
in this function, get all child posts:
https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/#displaying-child-post-contents
And delete them
https://developer.wordpress.org/reference/functions/wp_delete_post/

Q2) How is processed removal of the CPT authored by a user? If I remove a user, are his CPT removed automatically as well?
I assume we are talking about this:
Dashboard-> Users-> Delete a wordpress user
It is standard wordpress process, you can choose two options:
1) Delete all content. (of this user)
2) Attribute all content to: another user

I assume the original question has been resolved, if you need assistance for the new questions, please create new thread for the new questions, that will help other users to find the answers.

#802981

Thank you.