GB_User_Roles::add_cap
Add capability to role.
Signature
public function add_cap(string
$role,
string
$cap,
[boolean
$grant = true] )
Parameters
$role
—
string
Role name.
$cap
—
string
Capability name.
$grant
—
boolean
Optional, default is true. Whether role is capable of performing capability.
Violations
Checkstyle
Line |
Column |
Severity |
Message |
1166 |
12 |
error
|
Method name "GB_User_Roles::add_cap" is not in camel caps format |
1168 |
9 |
error
|
Inline control structures are not allowed |
1172 |
9 |
error
|
Inline control structures are not allowed |