A WordPress-centric search engine for devs and theme authors



role_has_cap ›

Since2.0.0
Deprecatedn/a
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
Parameters: (3)
  • (array) $capabilities Array of role capabilities.
    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 );