WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/remove user from blog

Description

Removes the specified user from the specified (or primary blog) and optionally reassigns their posts and other submissions to a new user.

Parameters

$user_id
(integer) (required) The user id of the user to be removed.
Default: None
$blog_id
(integer) (optional) The blog id the user is to be removed from.
Default: [blank string]
$reassign
(integer) (optional) The user id of the user who will be assigned the old user's posts etc...
Default: [blank string]

Return Values

(null)

Usage

<?php remove_user_from_blog($user_id$blog_id$reassign); ?>