W3cubDocs

/WordPress

do_action( 'add_user_to_blog', int $user_id, string $role, int $blog_id )

Fires immediately after a user is added to a site.

Parameters

$user_id

(int) User ID.

$role

(string) User role.

$blog_id

(int) Blog ID.

Source

File: wp-includes/ms-functions.php

View on Trac

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_user_to_blog