Array of key/value pairs where keys represent a capability name and boolean values represent whether the user has that capability.
$capsstring[]
Required primitive capabilities for the requested capability.
$argsarray
{ Arguments that accompany the requested capability check. @type string $0 Requested capability. @type int $1 Concerned user ID. @type mixed ...$2 Optional second and further parameters, typically object ID.}
$0string
Requested capability.
$1int
Concerned user ID.
...$2mixed
Optional second and further parameters, typically object ID.
818* @type string$0 Requested capability.819* @type int$1 Concerned user ID.820* @type mixed...$2 Optional second and further parameters, typically objectID.821*}822* @param WP_User$user The user object.823*/824$capabilities=apply_filters('user_has_cap',$this->allcaps,$caps,$args,$this);825826// Everyone is allowed to exist.827$capabilities['exist']=true;828829// Nobody is allowed to do things they are not allowed to do.830unset($capabilities['do_not_allow']);
History
Introduced in 2.0.0. Unchanged from 6.7.7 through 7.1.0.