Description
Filters the primitive capabilities required of the given user to satisfy the capability being checked.
Occurrences
Filename | Line Number |
---|---|
wp-includes/capabilities.php | 842 |
Parameters
Type | Name | Description |
---|---|---|
string[] | $caps | Primitive capabilities required of the user. |
string | $cap | Capability being checked. |
int | $user_id | The user ID. |
array | $args | Adds context to the capability check, typically starting with an object ID. |
PHP Doc
/**
* Filters the primitive capabilities required of the given user to satisfy the
* capability being checked.
*
* @since 2.8.0
*
* @param string[] $caps Primitive capabilities required of the user.
* @param string $cap Capability being checked.
* @param int $user_id The user ID.
* @param array $args Adds context to the capability check, typically
* starting with an object ID.
*/