remove_user_from_blog action-hookWP 3.0.0

Fires before a user is removed from a site.

Usage

add_action( 'remove_user_from_blog', 'wp_kama_remove_user_from_blog_action', 10, 3 );

/**
 * Function for `remove_user_from_blog` action-hook.
 * 
 * @param int $user_id  ID of the user being removed.
 * @param int $blog_id  ID of the blog the user is being removed from.
 * @param int $reassign ID of the user to whom to reassign posts.
 *
 * @return void
 */
function wp_kama_remove_user_from_blog_action( $user_id, $blog_id, $reassign ){

	// action...
}
$user_id(int)
ID of the user being removed.
$blog_id(int)
ID of the blog the user is being removed from.
$reassign(int)
ID of the user to whom to reassign posts.

Changelog

Since 3.0.0 Introduced.
Since 5.4.0 Added the $reassign parameter.

Where the hook is called

remove_user_from_blog()
remove_user_from_blog
wp-includes/ms-functions.php 246
do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign );

Where the hook is used in WordPress

Usage not found.