I have two users and I would like to merge then into one.
All the answers I could find online to this question focus on transferring ownership of posts, but this is a network site and I need to transfer permissions and roles as well.
Is there an easy way to do this?
I have two users and I would like to merge then into one.
All the answers I could find online to this question focus on transferring ownership of posts, but this is a network site and I need to transfer permissions and roles as well.
Is there an easy way to do this?
Share Improve this question asked Apr 10, 2015 at 13:27 DancrumbDancrumb 2392 silver badges8 bronze badges 6- Just delete one of them - WordPress will ask if you want to attribute their posts and links to another user. – TheDeadMedic Commented Apr 10, 2015 at 13:30
- That doesn't transfer permissions or roles. – Dancrumb Commented Apr 10, 2015 at 13:31
- Which roles/capabilities does each user currently have? – TheDeadMedic Commented Apr 10, 2015 at 13:37
- Write permissions on different sites in the network. User defined roles on various sites. – Dancrumb Commented Apr 10, 2015 at 13:40
- Sounds like you'd need some (possibly complex) logic to parse permissions. WordPress won't do this for you, so id say that no there isn't an easy way. – s_ha_dum Commented Apr 10, 2015 at 13:42
4 Answers
Reset to default 2Generally speaking I agree with most of the other answers but, if for some reason you really had to merge two accounts here is how that could work.
Merging User-B into User-A
- Reassign all of User-B's content to User-A
- Determine the highest privilege of User-B
- If higher than the privileges of User-A elevate User-A's privileges else do nothing.
- If you have extended the WordPress's native users account you'll want to add that logic here too.
- Delete User-B and do some clean up.
What's easy to do is transferring posts of a user to another user. I think you can just simply delete it and transfer everything to an existing user. But user roles… I'm not sure why you'll have to transfer that to another user. Can't you just simple create another user with the same permiossions and merge the posts of both?
No, you cannot merge two users. What you can actually do is add the new user then transfer all the posts to him.
When you add the new user you can define his rule. In your case the new user should be an 'Admin'. Thus he will have access to all the contents as well as rights for everything. Moreover this simple process is also very easy to perform
Check this plugin, will be beneficial for you https://wordpress.org/plugins/wp-user-merger/