WP_User::for_site()
Method: Sets the site to operate on. Defaults to the current site.
Source: wp-includes/class-wp-user.php:865
Method: Sets the site to operate on. Defaults to the current site.
Source: wp-includes/class-wp-user.php:865
Method: Adds role to user.
Source: wp-includes/class-wp-user.php:542
Method: Gets the ID of the site for which the user’s capabilities are currently initialized.
Source: wp-includes/class-wp-user.php:888