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 Parameters


(string[]) Primitive capabilities required of the user.


(string) Capability being checked.


(int) The user ID.


(array) Adds context to the capability check, typically starting with an object ID.

Top ↑

Source Source

File: wp-includes/capabilities.php

View on Trac

Top ↑

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.