[wp-trac] [WordPress Trac] #56207: Multisite: record when a user is added to a site

WordPress Trac noreply at wordpress.org
Wed Jul 13 22:48:56 UTC 2022


#56207: Multisite: record when a user is added to a site
-------------------------+------------------------------
 Reporter:  daledupreez  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  multisite
-------------------------+------------------------------

Comment (by markparnell):

 Replying to [comment:1 daledupreez]:
 > In terms of implementation, this could be handled via a new `user_meta`
 field, e.g. `user_added_to_blog_date` that gets written by
 `add_user_to_blog()`.

 One small note - the meta key would need to include the blog ID as you'd
 need a separate value for each site, e.g.
 `$wpdb->prefix.'user_added_to_blog_date'` (or perhaps
 `$wpdb->prefix.'user_added_date'`) along the same lines as the
 capabilities meta record.

 > It is also completely possible for this to be implemented via the
 existing `add_user_to_blog` action, so it may not make sense to have this
 be a Core feature.

 Yeah, I'm inclined to think that this is plugin territory.

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


More information about the wp-trac mailing list