map_meta_cap

最后更新于:2021-11-27 06:51:22

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.

参数

$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.

源文件

文件: gc-includes/capabilities.php

View on Trac