function add_existing_user_to_blog( $details = false ) {}

Add a user to a blog based on details from maybe_add_existing_user_to_blog().


  • array $details

Defined actions

  • added_existing_user
    do_action( 'added_existing_user', $details[ 'user_id' ], $result );

Source code

function add_existing_user_to_blog( $details = false ) {

	global $blog_id;

	if ( is_array( $details ) ) {

		$result = add_user_to_blog( $blog_id, $details[ 'user_id' ], $details[ 'role' ] );

		do_action( 'added_existing_user', $details[ 'user_id' ], $result );


	return $result;



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: