Filters the primitive capabilities required of the given user to satisfy the capability being checked.
Parameters
$caps
string[]- Primitive capabilities required of the user.
$cap
string- Capability being checked.
$user_id
int- The user ID.
$args
array- Adds context to the capability check, typically starting with an object ID.
Source
return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.