wphooks.info - add_user_to_blog

add_user_to_blog

The hook occurs in the following file:

wp-includes/ms-functions.php:
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
	/**
	 * Fires immediately after a user is added to a site.
	 *
	 * @since MU
	 *
	 * @param int    $user_id User ID.
	 * @param string $role    User role.
	 * @param int    $blog_id Blog ID.
	 */
	do_action( 'add_user_to_blog', $user_id, $role, $blog_id );
	wp_cache_delete( $user_id, 'users' );
	wp_cache_delete( $blog_id . '_user_count', 'blog-details' );
	restore_current_blog();
	return true;
}

/**
 * Remove a user from a blog.
 *