[wp-trac] [WordPress Trac] #43438: Export registered user's private data on request
WordPress Trac
noreply at wordpress.org
Wed Mar 7 22:58:34 UTC 2018
#43438: Export registered user's private data on request
------------------------------+------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: gdpr needs-patch | Focuses:
------------------------------+------------------
Comment (by allendav):
Replying to [comment:4 jesperher]:
> Instead of returning arrays, would it be a safer approach, to use
objects, like in WooCommerce and adding items to cart dynamicly ?
>
> like
> $object->add_callback('plugin_slug','callback');
Instead of using a filter to register our callback, we could certainly use
a global method, like core does today with things like register_post_type.
I do appreciate what you proposed is not entirely dissimilar from the
approach your GDPRWP project is using by having plugins call methods on an
instance of GdprToolbox, but I don't think calling instance methods will
be as familiar to your average plugin developer as using a filter or
calling a global method.
What do you think?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43438#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list