Summery Summery
Add a user to a blog based on details from maybe_add_existing_user_to_blog().
Syntax Syntax
Parameters Parameters
- $details
-
(Optional) User details.
Default value: false
Return Return
(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.
Source Source
File: wp-includes/ms-functions.php
sprintf( /* translators: %s: Home URL. */ __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ), home_url() ) ); } wp_die( sprintf( /* translators: 1: Home URL, 2: Admin URL. */ __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress › Success' ), array( 'response' => 200 ) ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |