GB_User::add_role
Add role to user.
Updates the user's meta data option with capabilities and roles.
Signature
public function add_role(string
$role )
Parameters
$role
— string
Role name.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
437 | 5 | error | Method name "GB_User::add_role" is not in camel caps format |
437 | 5 | error | Visibility must be declared on method "add_role" |
447 | 11 | error | Whitespace found at end of line |