wpseek.com
A WordPress-centric search engine for devs and theme authors



role_has_cap › WordPress Filter Hooks

Since2.0.0
Deprecatedn/a
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
Parameters: (3)
  • (bool[]) $capabilities Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
    Required: Yes
  • (string) $cap Capability name.
    Required: Yes
  • (string) $name Role name.
    Required: Yes
Defined at:
Codex:

Filters which capabilities a role has.





Source

$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );