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:

Description

Switches the initialized roles and current user capabilities to another site.

Related Functions

wp_create_user, wpmu_create_user, wp_check_filetype_and_ext, wp_list_widget_controls_dynamic_sidebar, wp_set_current_user

Top Google Results

User discussions

wpseek mobile