add_user_to_blog action-hookWP 3.0.0

Fires immediately after a user is added to a site.

Usage

add_action( 'add_user_to_blog', 'wp_kama_add_user_to_blog_action', 10, 3 );

/**
 * Function for `add_user_to_blog` action-hook.
 * 
 * @param int    $user_id User ID.
 * @param string $role    User role.
 * @param int    $blog_id Blog ID.
 *
 * @return void
 */
function wp_kama_add_user_to_blog_action( $user_id, $role, $blog_id ){

	// action...
}
$user_id(int)
User ID.
$role(string)
User role.
$blog_id(int)
Blog ID.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

add_user_to_blog()
add_user_to_blog
wp-includes/ms-functions.php 202
do_action( 'add_user_to_blog', $user_id, $role, $blog_id );

Where the hook is used in WordPress

Usage not found.