wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



role_has_cap › WordPress Filter Hooks

Seit2.0.0
Veraltetn/v
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
Parameter: (3)
  • (bool[]) $capabilities Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
    Erforderlich: Ja
  • (string) $cap Capability name.
    Erforderlich: Ja
  • (string) $name Role name.
    Erforderlich: Ja
Definiert in:
Codex:

Filters which capabilities a role has.





Quellcode

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