On this page
apply_filters( 'map_meta_cap', string[] $caps, string $cap, int $user_id, array $args )
Filters the primitive capabilities required of the given user to satisfy the capability being checked.
Parameters
$capsstring[]-
Primitive capabilities required of the user.
$capstring-
Capability being checked.
$user_idint-
The user ID.
$argsarray-
Adds context to the capability check, typically starting with an object ID.
Source
File: wp-includes/capabilities.php. View all references
return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );
Related
Used By
| Used By | Description |
|---|---|
| map_meta_cap() wp-includes/capabilities.php | Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/map_meta_cap