apply_filters( ‘role_has_cap’, bool[] $capabilities, string $cap, string $name )

In this article

Filters which capabilities a role has.

Parameters

$capabilitiesbool[]
Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
$capstring
Capability name.
$namestring
Role name.

Source

$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

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