Codex

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

WPMU Functions/remove user from blog

This page redirects to an external site: https://developer.wordpress.org/reference/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); ?>