Un motore di ricerca WordPress per sviluppatori e autori di temi



role_has_cap ›

Da2.0.0
Deprecaton/a
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
Parametri: (3)
  • (bool[]) $capabilities Associative array of capabilities for the role.
    Richiesto:
  • (string) $cap Capability name.
    Richiesto:
  • (string) $name Role name.
    Richiesto:
Definito a:
Codex:

Filters which capabilities a role has.





Sorgenti

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