Skip to content

Update documentation for adding caps to explicitly state --no-grant #48

@kopepasah

Description

@kopepasah

Feature Request

Describe your use case and the problem you are facing

Currently, the wp cap add command documentation states the following about grant:

[--grant]
    Adds the capability as an explicit boolean value, instead of implicitly defaulting to true.
    ---
    default: true
    options:
    – true
    – false
    ---

This documentation is confusing and seems that wp cap add {role} {cap} --grant=false would add a capability as false, when it should actually be wp cap add {role} {cap} --no-grant.

Describe the solution you'd like

Update the documentation to state that --no-grant is the correct way to set an added capability to false.

[--no-grant]
    Adds the capability as an explicit boolean false value, instead of implicitly defaulting to true.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions