Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-cli: detect user roles added/removed #431

Closed
bonny opened this issue Feb 24, 2024 · 1 comment
Closed

wp-cli: detect user roles added/removed #431

bonny opened this issue Feb 24, 2024 · 1 comment
Assignees

Comments

@bonny
Copy link
Owner

bonny commented Feb 24, 2024

This was added in wp-cli 2.10.0. Since we recently added support for multiple roles in the GUI this makes a nice addition to that.

https://make.wordpress.org/cli/2024/02/08/wp-cli-v2-10-0-release-notes/

Support for adding and removing of multiple user roles
The two commands user add-role and user remove-role are now less lazy and can accept > multiple roles to add or remove for a given user. You can make this work by simply adding > as many roles as needed as separate arguments.

$ wp user add-role 12 author editor

Success: Added 'author', 'editor' roles for johndoe (12).

$ wp user remove-role 12 author editor

Success: Removed 'author', 'editor' roles for johndoe (12).

@bonny bonny created this issue from a note in Simple History kanban (In progress) Feb 24, 2024
@bonny bonny self-assigned this Mar 1, 2024
@bonny
Copy link
Owner Author

bonny commented Mar 12, 2024

Done:

CleanShot 2024-03-12 at 18 46 31@2x

@bonny bonny closed this as completed Mar 12, 2024
Simple History kanban automation moved this from In progress to Done Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant