Advertisements

add_existing_user_to_blog

Definition:
function add_existing_user_to_blog( $details = false ) {}

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

Parameters

  • 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;

}

231

Advertisements

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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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: