WPDev.one
Core Function
View Source on Trac ↗

add_existing_user_to_blog()

add_existing_user_to_blog( mixed $details = false )

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

Parameters 1 required

Name / Type Description
mixed

(array | false) $details { User details. Must at least contain values for the keys listed below.

Required

Return Value

((true)
(true | WP_Error | void) True on success or a WP_Error object if the user doesn't exist or could not be added. Void if $details array was not provided.

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-functions.php
Advertisement