[wp-trac] [WordPress Trac] #41757: Add action inside of add_new_user_to_blog() function
WordPress Trac
noreply at wordpress.org
Wed Aug 30 02:26:17 UTC 2017
#41757: Add action inside of add_new_user_to_blog() function
-----------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Users | Version: 3.0
Severity: minor | Keywords:
Focuses: multisite |
-----------------------------+-----------------------------
When adding a new user to a site in multisite, the full `$meta` array is
passed in from the relative entry in the `wp_signups` database table, but
it's impossible to do anything with it here because no action exists in
this function.
* A similar action does already exist in `add_existing_user_to_blog()`.
* We could use the `wpmu_activate_user` hook, but we'd need to reconfirm
if the user was added to the site again, which is not ideal because some
complex blog switching may need to occur to do so
I'll attach a patch shortly that adds an action to match
`add_existing_user_to_blog()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41757>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list