apply_filters( ‘map_meta_cap’, string[] $caps, string $cap, int $user_id, array $args )

In this article

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

return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.