WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/add new user to blog

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Add a newly created user to the appropriate blog.

Usage

<?php add_new_user_to_blog$user_id$email$meta ?>

Parameters

$user_id
(integer) (required) The new user ID
Default: None
$email
(string) (required) New user's email
Default: None
$meta
(array) (required) Sign-up meta for a user. The 'add_to_blog' and 'new_role' fields are used.
Default: None

Return Value

This function does not return a value.

Examples


Notes

Change Log

Since: MU (3.0.0)

Source File

add_new_user_to_blog() is located in wp-includes/ms-functions.php

Related

Blog User Functions: add_user_to_blog(), add_new_user_to_blog(), remove_user_from_blog(), is_user_member_of_blog()

See also index of Function Reference and index of Template Tags.