Capability
Less than 1 minute
Syntax
Capability:<capability-slug>
Definition
AAM treats WordPress capability as a stand-alone resource that can be assigned or deprived of any role or user. The following policy grants the ability to install, activate and deactivate plugins.
{
"Statement": [
{
"Effect": "allow",
"Resource": [
"Capability:install_plugins",
"Capability:activate_plugins"
]
}
]
}
Note!
AAM refrains from altering the list of capabilities stored in the database (found under the _user_roles
option in the _options
database table or _capabilities
in the _usermeta
table). Instead, it dynamically assigns or revokes targeted capabilities during website load.