add_new_user_to_blog

SummerySummery

Adds a newly created user to the appropriate blog

Syntax

add_new_user_to_blog( int $user_id, string $password, array $meta )

DescriptionDescription

To add a user in general, use add_user_to_blog(). This function is specifically hooked into the ‘wpmu_activate_user’ action.

ParametersParameters

$user_id

(int) (Required) User ID.

$password

(string) (Required) User password. Ignored.

$meta

(array) (Required) Signup meta data.

SourceSource

File: wp-includes/ms-functions.php


			

ChangelogChangelog

Changelog
Version Description
MU (3.0.0) Introduced.

See alsoSee also

Scroll to Top