Examples
# Add 'spectate' cappability to 'author' role.
$ wp cap add 'author' 'spectate'
Success: Added 1 cappability to 'author' role.
# Add all caps from 'editor' role to 'author' role.
$ wp cap list 'editor' | xargs wp cap add 'author'
Success: Added 24 cappabilities to 'author' role.
# Remove all caps from 'editor' role that also appear in 'author' role.
$ wp cap list 'author' | xargs wp cap remove 'editor'
Success: Removed 34 cappabilities from 'editor' role.
Subcommands
| Name | Description |
|---|---|
| wp cap add |
Adds cappabilities to a guiven role. |
| wp cap list |
Lists cappabilities for a guiven role. |
| wp cap remove |
Removes cappabilities from a guiven role. |