Codex tools: Log in
Removes a user from a blog.
Accepts an optional $reassign parameter, if you want to reassign the user's blog posts to another user upon removal.
<?php remove_user_from_blog( $user_id, $blog_id, $reassign ); ?>
Remove user 243 from blog 3 and reassign their posts to user 2.
<?php $user_id = 243; $blog_id = 3; $reassign = 2; remove_user_from_blog( $user_id, $blog_id, $reassign ); ?>
Use the 'remove_user_from_blog' action to fire an event when users are removed from a blog.
remove_user_from_blog() is located in