User Role Sync This add-on copies the users, and their roles, from a source blog to other blogs in the network. Comments Love your plugin. I have been attempting to programattically sync users with specific roles. However, I have not been able to accomplish this. 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 :-) Reply 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: broadcast_user_role_sync()->sync_user_roles( [ ‘blogs’ => 82, ‘role__in’ => ‘clinician_utah’, ] ); Don’t forget the double underscore in role__in, which I kept to stay with the WordPress “standard”. Hello, So this addon will automatically sync users when they register? Or i need to code something? Reply 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? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment.