This add-on for Broadcast manipulates users:
- copies users between blogs
- copies roles between blogs
- removes users from blogs
The roles are overwritten on each target blog. If you use a role editing plugin, you can use this tool to sync the role capabilities to the other blogs in the network.
When syncing users, the user’s image from the One User Avatar plugin is copied.
Any suggestions on how to use “broadcast_user_role_sync()->sync_user_roles( [ ‘blogs’ => 82 ] );” with role_in = “clinician_utah”
I am assuming that 82 in the code above is the blog ID?
Any guidance would be much appreciated :-)
Blogs = to which blogs to send the user roles from the current blog.
So in your case, I’m figuring you’re looking for something like this:
‘blogs’ => 82,
‘role__in’ => ‘clinician_utah’,
Don’t forget the double underscore in role__in, which I kept to stay with the WordPress “standard”.
So this addon will automatically sync users when they register? Or i need to code something?
The add-on does not automatically sync users when they register, although I suppose a code snippet could do that. If you e-mail me your requirements (when to sync, to where) I can perhaps come up with something that triggers the User Role Sync add-on?