Role

wp role

Manages user roles, including creating new roles and resetting to defaults. See references for Roles and Capabilities and WP User...

Updated February 15, 2026

wp role create

Creates a new role. Synopsis wp role create <role-key> <role-name> [--clone=<role>] Options The internal name of the role. The publicly...

Updated February 15, 2026

wp role delete

Deletes an existing role. Synopsis wp role delete <role-key> Options The internal name of the role. Examples # Delete approver...

Updated February 15, 2026

wp role exists

Checks if a role exists. Exits with return code 0 if the role exists, 1 if it does not. Synopsis...

Updated February 15, 2026

wp role list

Lists all roles. Synopsis wp role list [--fields=<fields>] [--field=<field>] [--format=<format>] Options [--fields=] Limit the output to specific object fields. [--field=]...

Updated February 15, 2026

wp role reset

Resets any default role to default capabilities. Uses WordPress' populate_roles() function to put one or more roles back into the...

Updated February 15, 2026
← Back to Chubes.net