apply_filters( 'map_meta_cap', array $caps, string $cap, int $user_id, array $args )

Filters a user’s capabilities depending on specific context and/or privilege.


Parameters

$caps

Returns the user's actual capabilities.

$cap

Capability name.

$user_id

The user ID.

$args

Adds the context to the cap. Typically the object ID.


Source

File: wp-includes/capabilities.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.8.0 Introduced.