You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@danielbachhuber Hi! The use case was that I needed to add and remove multiple user roles. I.e.:
For a single user, I would need to remove the a, b & c roles, and then add the x, y, z user roles, which would require running the wp user add-role & wp user remove-role a total of 6 time (3 times each).
The number of removed & added roles would differ, but the idea is that you would need to run wp user add-role & wp user remove-role multiple times. On a local machine, it might not be that bad, but sending each command to a remote host, could add quite a bit of overhead (time to write & execute the commands).
danielbachhuber
changed the title
New command proposal to toggle user roles : wp user toggle user role1 role2 role3
Support multiple roles in user add-role and user remove-roleSep 8, 2023
Feature Request
Describe your use case and the problem you are facing
A new cli command for toggling user roles.
Describe the solution you'd like
It might be beneficial to add a command to toggle user roles. It could look like:
wp user toggle-role user role1 role2 role3 ... rolen
The text was updated successfully, but these errors were encountered: