-
Notifications
You must be signed in to change notification settings - Fork 28
Multisite
WP User Profiles supports site administration, Network Admin, and the User Dashboard.
On multisite, the Sites section can show:
- the user's primary site;
- site memberships;
- roles for each site; and
- actions available for those memberships.
Roles are site-specific. The plugin switches WordPress context while validating and applying role changes, then restores the original site context. Permissions are checked for each affected site.
Large networks may use local or remote strategies to discover role information. The strategy is filterable through wp_user_profiles_get_common_user_roles_strategy.
Related filters include:
pre_wp_user_profiles_common_user_roleswp_user_profiles_filter_sites_table_query_argswp_common_user_roles_cache_ttlwp_user_roles_main_sites
Changing the primary site affects links and default context associated with the user. The selected site must be one the user can access.
Test role and membership automation on a staging network. A valid role name on one site may not exist on another, and custom role plugins may register different capabilities by site.