Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/capabilities.php | apply_filters | 838 | /** * 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. */ |
Hook Parameters
Parameter 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 |