bool $allcaps, string $caps, array $args, WP_User $user )
Dynamically filter a user’s capabilities.
Array of key/value pairs where keys represent a capability name and boolean values represent whether the user has that capability.
Required primitive capabilities for the requested capability.
Arguments that accompany the requested capability check.
- stringRequested capability.
1intConcerned user ID.
...$2mixedOptional second and further parameters, typically object ID.
The user object.
Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.
This will occur if a plugin or a theme calls
has_cap directly. The plugin or theme needs to be updated to use the new roles and capabilities classes.
View all references
$capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );