wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



user_has_cap › Filtr WordPress Hooks

Od3.7.0
Przestarzałyn/a
› apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this )
Parametry: (4)
  • () allcaps Array of key/value pairs where keys represent a capability name and boolean values represent whether the user has that capability.
    Wymagane: Tak
  • () caps Required primitive capabilities for the requested capability.
    Wymagane: Tak
  • () args { Arguments that accompany the requested capability check. @type string $0 Requested capability. @type int $1 Concerned user ID. @type mixed ...$2 Optional second and further parameters, typically object ID. }
    Wymagane: Tak
  • () user The user object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Dynamically filter a user's capabilities.





Źródło

$capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );