Skip Navigation

[Resolved] Configure the Export Personal Data File to include all CPT created by User

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

Problem:
How to include custom user fields and other data in the export of personal data?

Solution:
This requires custom code to modify what data is included in the export. Here are some links to 3rd-party tutorials:

https://scottdeluzio.com/gdpr-for-wordpress-plugin-and-theme-developers/
https://rudrastyh.com/wordpress/personal-data-exporters-and-erasers.html

Relevant Documentation:
https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_exporters/

This support ticket is created 5 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by andrei-laurentiuP 5 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#1274461

Does anybody have any idea on how to customise the Personal Data Export File so that it would include links to all Custom Post Types and/or other data created/issued by the user who requests the personal data?

Regards,
Andrei

#1274551

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Andrei

I did some Googling as I'm not familiar with it.

I couldn't really find any official documentation about it, apart from the reference for the hook which is used to add additional data to the export file: https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_exporters/

I found a couple of tutorials which describe how to use it:

hidden link
hidden link

I'm not sure what data you intend to include. You say custom posts, but WordPress doesn't include standard posts authored by a user, presumably because a blog post written by a user is not considered data "about" a user. I imagine custom user fields are the main content that you would include in such an export.

In any case, those tutorials outline what is required for whatever kind of content.

If you think this is something that should be added by Toolset automatically, then I'd suggest you submit a request at https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

(I happened to have an email plugin active when I exported some test personal data, and all of the emails to that user were included in the report automatically.)

#1274555

Thank you, Nigel!! This should be helpful with CPT and custom fields as well, since if you have a multi-user website (for example, you have people posting estate or business related info or whatever; they may include data there that might be considered personal and of which they may want later on to be aware) I will post this as a suggestion. Thank you!!!