Skip to content

Latest commit

 

History

History
75 lines (61 loc) · 1.5 KB

File metadata and controls

75 lines (61 loc) · 1.5 KB
layout default
title wp role
display_global_parameters true

Commands » role

wp role - Manage user roles.

Quick links: Github issues


EXAMPLES

# List roles
$ wp role list --fields=role --format=csv
role
administrator
editor
author
contributor
subscriber

# Check if a role exists
$ wp role exists editor
Success: Role with ID editor exists.

# Create role
$ wp role create approver Approver
Success: Role with key approver created.

# Delete role
$ wp role delete approver
Success: Role with key approver deleted.

# Reset role
$ wp role reset administrator author contributor
Success: Reset 3/3 roles

SUBCOMMANDS

Name Description
create Create a new role.
delete Delete an existing role.
exists Check if a role exists.
list List all roles.
reset Reset any default role to default capabilities.