This is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
|Author:||jeffreyvr (profile at wordpress.org)|
|WordPress version required:||4.3|
|WordPress version tested:||4.4.2|
|Added to WordPress repository:||27-01-2016|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Click to start download
Where is the settings page for this plugin?
There is none. You simply activate it and it will work right away.
Is there a function to add a role to a user programmatically?
Yes, there is. See this example code:
<?php $members_mu_user_roles_sync = new Members_Mu_User_Roles_Sync(); $members_mu_user_roles_sync->add_role( $user_id, // user you want to add role to $roles = array(), // input array is needed $all_sites = TRUE ); ?>
- Init release.
- Fix: User roles were not syncing to other sites when removing roles. (jeffreylasut)
- Enhancement: Make sure function get_editable_roles exists.