GB_User:: map_cap
Map meta capabilities to primitive capabilities.
This does not actually compare whether the user ID has the actual capability,
just what the capability or capabilities are. Meta capability list value can
be 'delete_user', 'edit_user', 'remove_user', 'promote_user'.
Signature
public function map_cap(string
$cap )
Parameters
$cap
—
string
Capability name.
Returns
array
Actual capabilities for meta capability.
Violations
PHPMessDetector
Line
Rule
Message
596 - 682
CyclomaticComplexity
The method map_cap() has a Cyclomatic Complexity of 33. The configured cyclomatic complexity threshold is 10.
Checkstyle
Line
Column
Severity
Message
596
12
error
Method name "GB_User::map_cap" is not in camel caps format
596
12
error
Visibility must be declared on method "map_cap"
611
17
error
Inline control structures are not allowed
671
11
error
Whitespace found at end of line