WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#47509 new enhancement

add a filter in wp_user_personal_data_exporter() to make it easier to include additional user meta in a personal data export

Reported by: pbiron Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Privacy Keywords:
Focuses: Cc:
PR Number:

Description (last modified by pbiron)

wp_user_personal_data_exporter() has a fixed set of user properties that it includes in a personal data export.

Therefore, plugins that store personal data as user meta have to write their own exporter (and register it with the wp_privacy_personal_data_exporters).

It would be nice if wp_user_personal_data_exporter() had a filter that allowed plugins to augment the hard coded list. That way they wouldn't have to write their own exporter.

Change History (3)

#1 follow-ups: @azaozz
5 months ago

This was discussed a bit in Slack. It makes sense for plugins to be able to add more/other data they have stored in user meta, and perhaps in other places as long as the data is fast to get.

Also, perhaps the default data should not be configurable/removable by a plugin. Plugins should be able to add data "safely" with no chance to accidentally overwrite other data there.

#2 in reply to: ↑ 1 @pbiron
5 months ago

  • Description modified (diff)

#3 in reply to: ↑ 1 @pbiron
5 months ago

Replying to azaozz:

Also, perhaps the default data should not be configurable/removable by a plugin. Plugins should be able to add data "safely" with no chance to accidentally overwrite other data there.

Correct, that's what I meant by

...allowed plugins to augment the hard coded list

but your clarification makes it much clearer.

Note: See TracTickets for help on using tickets.