wp_switch_roles_and_user
wp_switch_roles_and_user ( $new_site_id, $old_site_id )
Parameters:- (int) new_site_id New site ID.
- (int) old_site_id Old site ID.
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Description
Switches the initialized roles and current user capabilities to another site.