GB_User::add_cap
Add capability and grant or deny access to capability.
Signature
public function add_cap(string
$cap,
[boolean
$grant = true] )
Parameters
$cap
— string
Capability name.$grant
— boolean
Whether to grant capability to user.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
547 | 5 | error | Method name "GB_User::add_cap" is not in camel caps format |
547 | 5 | error | Visibility must be declared on method "add_cap" |