Skip to content

Support multiple roles in user add-role and user remove-role #423

@mbucurcf

Description

@mbucurcf

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

  • Notice that it could accept more than 1 role
  • If a role is active, it will deactivated it
  • If a role is inactive, it will activate it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions