Uma área de pesquisa sobre o WordPress para devs e autores do tema



role_has_cap ›

Desde2.0.0
Obsoleton/a
apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name )
Parâmetros: (3)
  • (bool[]) $capabilities Associative array of capabilities for the role.
    Required: Yes
  • (string) $cap Capability name.
    Required: Yes
  • (string) $name Role name.
    Required: Yes
Definido em:
Codex:

Filters which capabilities a role has.





Hooks relacionados: clean_user_cache, clean_site_cache

Fonte

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