Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/class-wp-user.php | apply_filters | 809 | /** * Dynamically filter a user's capabilities. * * @since 2.0.0 * @since 3.7.0 Added the `$user` parameter. * * @param bool[] $allcaps Array of key/value pairs where keys represent a capability name * and boolean values represent whether the user has that capability. * @param string[] $caps Required primitive capabilities for the requested capability. * @param array $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. * } * @param WP_User $user The user object. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
bool[] | $allcaps | Array of key/value pairs where keys represent a capability name |
string[] | $caps | Required primitive capabilities for the requested capability. |
array | $arg | s { |
WP_User | $user | The user object. |