remove_user_from_blog

remove_user_from_blog

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('remove_user_from_blog') is found 1 times:

  • /wp-includes/ms-functions.php line 246
    	 * @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.
    	 */
    	do_action( 'remove_user_from_blog', $user_id, $blog_id, $reassign );
    
    	/*
    	 * If being removed from the primary blog, set a new primary
    	 * if the user is assigned to multiple blogs.
    	 */
    	$primary_blog = get_user_meta( $user_id, 'primary_blog', true );
    

See this hook used in plugins: