A WordPress-centric search engine for devs and theme authors



user_has_cap ›

Since3.7.0
Deprecatedn/a
apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this )
Parameters: (4)
  • (bool[]) $allcaps An array of all the user's capabilities.
    Required: Yes
  • (string[]) $caps Actual capabilities for meta capability.
    Required: Yes
  • (array) $args Optional parameters passed to has_cap(), typically object ID.
    Required: Yes
  • (WP_User) $user The user object.
    Required: Yes
Defined at:
Codex:

Dynamically filter a user's capabilities.





Source

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