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.


Description Description


Parameters Parameters

$caps

(array) Returns the user's actual capabilities.

$cap

(string) Capability name.

$user_id

(int) The user ID.

$args

(array) Adds the context to the cap. Typically the object ID.


Top ↑

Source Source

File: wp-includes/capabilities.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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